Page cover

📦Asset Data

The asset management system.

What is Asset Data?

Asset data is the nickname of a collection of scripts that for a system initially introduced by Seteron, it beingb v a way to get assets in a more practical manner than using Resources.Load("AssetName").

With Asset data, however we use static classes with the corresponding to the asset name, so finding an asset is a manner of knowing the asset name in order to load it.

Comparison:

In this example, the asset has to be named BikeHorn and searched by string in order to be found, and has to be placed into an Editor folder. This prevents it from working at runtime. So we won't be able to do this ingame.

GameObject bikeHornPrefab = Resources.Load("BikeHorn");

Using the asset data system, autogenerated classes provide easy access to the content of those databases.

GameObject bikeHornPrefab = Items.BikeHorn

Last updated

Was this helpful?