Difference objects added and directly created in?

Hello.

  1. I create an Object in the Asset column.
  2. I create a Script in the Asset column.
  3. In the Object Ouline column, I add the script by “Add component file”
  4. In the main Collection outline colum, I add the Object by "Add component file

Now, I could add an Object without creating it first in the Assets column, just in the Outline from the Collection by “add game object”.

My question : Is there a difference when I want to use it ? I think about the “Properties” panel, under the “Ouline” column. For example, one have a path (the one that is created in the Asset column), the other not.

Is there a change when I call one, when I listen from one ? When I change any properties ?

The difference is explained in this manual: The building blocks of Defold

1 Like

I like to look at objects and components in assets as “reusable files”. If the same object is used in more than one place, it usually makes sense to have it as an asset.

2 Likes

It may make more sense if you open Defold’s files as text files. The constraints of Defold’s design are expressed in the files’ contents, much more clearly than in the editor.

1 Like

Thank you, I will look at all that.