Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development

What is the difference between a game asset and a game object

so if a frog is a game asset what is a game object just a little confused between an asset and an object

1 Answer

Matt Milburn
Matt Milburn
20,786 Points

Hi gaurav8199,

An asset in a program (not just a game) is often a piece of media, such as an image, audio file, video file, custom font, etc. An object in a program is often a term referring to a generic Object data type or a base class for other type of objects in the program.

If you're working with Unity, an Object is a base class for all objects in Unity. But a GameObject is a base class for all entities within scenes.

To put it more simply... an asset is something you created that you're loading into your program and an object is a programming construct.