Files
XCEngine/docs/api/XCEngine/Components/GameObject/GameObject.md

3.2 KiB
Raw Blame History

GameObject

命名空间: XCEngine::Components

类型: class

头文件: XCEngine/Components/GameObject.h

描述: 定义 XCEngine/Components 子目录中的 GameObject public API。

概述

GameObject.hXCEngine/Components 子目录 下的 public header当前页面作为平行目录中的 canonical 总览,用于汇总该头文件暴露的主要声明。

声明概览

声明 类型 说明
GameObject class 头文件中的公开声明。

公共方法

方法 描述
GameObject() 构造对象。
~GameObject() 销毁对象并释放相关资源。
GetID 获取相关状态或对象。
GetUUID 获取相关状态或对象。
GetName 获取相关状态或对象。
SetName 设置相关状态或配置。
DetachFromParent 公开方法,详见头文件声明。
GetScene 获取相关状态或对象。
GetTransform 获取相关状态或对象。
AddComponent 添加元素或建立关联。
GetComponent 获取相关状态或对象。
GetComponents 获取相关状态或对象。
RemoveComponent 移除元素或解除关联。
GetComponentInChildren 获取相关状态或对象。
GetComponentInParent 获取相关状态或对象。
GetComponentsInChildren 获取相关状态或对象。
GetParent 获取相关状态或对象。
SetParent 设置相关状态或配置。
GetChildCount 获取相关状态或对象。
GetChild 获取相关状态或对象。
GetChildren 获取相关状态或对象。
DetachChildren 公开方法,详见头文件声明。
IsActive 查询当前状态。
SetActive 设置相关状态或配置。
IsActiveInHierarchy 查询当前状态。
Find 查找并返回匹配对象。
FindObjectsOfType 查找并返回匹配对象。
FindGameObjectsWithTag 查找并返回匹配对象。
Awake 公开方法,详见头文件声明。
Start 公开方法,详见头文件声明。
Update 更新运行时状态。
FixedUpdate 公开方法,详见头文件声明。
LateUpdate 公开方法,详见头文件声明。
OnDestroy 公开方法,详见头文件声明。
Destroy 公开方法,详见头文件声明。
Serialize 公开方法,详见头文件声明。
Deserialize 公开方法,详见头文件声明。

相关文档