Base class to implement callbacks to be used when creating assets via the project window. You can extend the EndNameEditAction and write your own callback.
Action | 当用户接受编辑的名称时,通过按 Enter 键或失去键盘输入焦点,Unity 会调用此函数。 |
Cancelled | 当用户按 Escape 键取消编辑名称时,Unity 会调用此函数。 |
CleanUp | Unity calls this function when the asset has been created allowing user to clean any allocated resources. |
OnEnable | Unity calls this function when an asset is about to be created, allowing user to setup any actions that needs to be called during the asset creation process from the Project Browser. |
GetInstanceID | Gets the instance ID of the object. |
ToString | 返回对象的名称。 |
Destroy | 移除 GameObject、组件或资源。 |
DestroyImmediate | 立即销毁对象 /obj/。强烈建议您改用 Destroy。 |
DontDestroyOnLoad | 在加载新的 Scene 时,请勿销毁 Object。 |
FindAnyObjectByType | Retrieves any active loaded object of Type type. |
FindFirstObjectByType | Retrieves the first active loaded object of Type type. |
FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
Instantiate | 克隆 original 对象并返回克隆对象。 |
CreateInstance | 创建脚本化对象的实例。 |
bool | 该对象是否存在? |
operator != | 比较两个对象是否引用不同的对象。 |
operator == | 比较两个对象引用,判断它们是否引用同一个对象。 |
Awake | 当 ScriptableObject 脚本启动时调用此函数。 |
OnDestroy | 当脚本化对象将销毁时调用此函数。 |
OnDisable | 当脚本化对象超出范围时调用此函数。 |
OnValidate | Editor-only function that Unity calls when the script is loaded or a value changes in the Inspector. |
Reset | 重置为默认值。 |