![]() ![]() Except for the ones in plugin folders that are compiled into Assembly-CSharp-firstpass.dll. The basic information needed to locate a script includes assembly name, namespace and class name.Įvery C# script in your project is compiled into Assembly-CSharp.dll. A MonoScript includes the information needed for you to locate the script that defines the Object. That is, your custom Objects (MonoBehaviour and ScriptableObjects) contain a reference to a MonoScript. MonoScript is a reference to the script your custom object is using. They are often used as Data Storage types. Unlike MonoBehaviour, ScriptableObject cannot be serialized within a Scene or Prefab asset. ![]() They can be attached to GameObjects as components. Your MonoBehaviour Object can be serialized within a Scene or Prefab. Unity provides two base Objects that allow you, with inheritance, to create your own custom Objects that Unity will serialize. Creating Your Own UnityEngine.Object: MonoBehaviour, ScriptableObjects and MonoScript
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |