ScriptableObject 脚本化对象
Inherits from Object
A class you can derive from if you want to create objects that don't need to be attached to game objects.
如果你想创建不需要附加到游戏物体的对象,你从这个类获得。
This is most useful for assets which are only meant to store data.
这对于只是为了存储数据的资源是很有用的。
Messages Sent发送消息
-
Creates an instance of a scriptable object with T.
创建一脚本化对象T的一个实例。 -
This function is called when the scriptable object goes out of scope
当脚本化对象超出范围时调用这个函数。 -
This function is called when the scriptable object will be destroyed.
当脚本化对象将被销毁,这个函数被调用。
Class Functions类函数
-
Creates an instance of a scriptable object with className.
创建一个名为className的脚本化对象的一个实例。 -
Creates an instance of a scriptable object with T.
创建一个带有T参数脚本化对象的实例。
Inherited members继承成员
Inherited Variables继承变量
-
The name of the object. //物体的名字
-
Should the object be hidden, saved with the scene or modifiable by the user?
物体是否被隐藏、保存在场景中或被用户修改?
Inherited Functions继承函数
-
Returns the instance id of the object.
返回物体的实例ID -
Returns the name of the game object.
返回游戏物体的名称。
Inherited Class Functions继承类函数
-
Does the object exist?
物体是否存在? -
Clones the object original and returns the clone.
克隆原始物体,并返回克隆的物体 -
-
Removes a gameobject, component or asset.
删除一个游戏物体、组件或资源 -
Destroys the object obj immediately. It is strongly recommended to use Destroy instead.
立即销毁物体obj,强烈建议使用Destroy代替。 -
Returns a list of all active loaded objects of Type type.
返回Type类型的所有激活的加载的物体列表 -
Returns the first active loaded object of Type type.
返回Type类型第一个激活的加载的物体。 -
Compares if two objects refer to the same
比较如果两个物体相同 -
Compares if two objects refer to a different object
比较如果两个物体不同 -
Makes the object target not be destroyed automatically when loading a new scene.
加载新场景的时候使目标物体不被自动销毁。
最后修改:2011年6月25日 Saturday 11:35