Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
Object 物体
# Object 物体 Base class for all objects Unity can reference. Unity 所涉及所有物体的基类。 Any public variable you make that derives from Object gets shown in the inspector as a drop target, allowing you to set the value from the GUI. 任何从 Object 继承的公共变量,作为一个拖放目标显示在检视面板,允许你从 GUI 设置值。 ### Variables**变量** * [name](Object.name.html) The name of the object. //物体的名字 * [hideFlags](Object.hideFlags.html) Should the object be hidden, saved with the scene or modifiable by the user? 物体是否被隐藏、保存在场景中或被用户修改? ### Functions**函数** * [GetInstanceID](Object.GetInstanceID.html) Returns the instance id of the object. 返回物体的实例 ID * [ToString](Object.ToString.html) Returns the name of the game object. 返回游戏物体的名称。 ### Class Functions**类函数** * [operator bool](Object.operator_bool.html) Does the object exist? 物体是否存在? * [Instantiate](Object.Instantiate.html) Clones the object original and returns the clone. 克隆原始物体,并返回克隆的物体 * [Instantiate.<T>](Object.Instantiate.ltTgt.html) * [Destroy](Object.Destroy.html) Removes a gameobject, component or asset. 删除一个游戏物体、组件或资源 * [DestroyImmediate](Object.DestroyImmediate.html) Destroys the object obj immediately. It is strongly recommended to use Destroy instead. 立即销毁物体 obj,强烈建议使用 Destroy 代替。 * [FindObjectsOfType](Object.FindObjectsOfType.html) Returns a list of all active loaded objects of Type type. 返回 Type 类型的所有激活的加载的物体列表 * [FindObjectOfType](Object.FindObjectOfType.html) Returns the first active loaded object of Type type. 返回 Type 类型第一个激活的加载的物体。 * [operator ==](Object.operator_eq.html) Compares if two objects refer to the same 比较如果两个物体相同 * [operator !=](Object.operator_ne.html) Compares if two objects refer to a different object 比较如果两个物体不同 * [DontDestroyOnLoad](Object.DontDestroyOnLoad.html) Makes the object target not be destroyed automatically when loading a new scene. 加载新场景的时候使目标物体不被自动销毁。
da
2022年5月23日 14:10
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码