智能客服
你问我答,随时在线为你解决问题

























Class Info |
|---|
class IComponent 组件基类,主要提供组件启动、每帧更新等功能。 |
Constructor Name |
|---|
IComponent(SceneObject* object) 构造函数。 |
Destructor Name |
|---|
virtual ~IComponent() 析构函数。 |
Qualifier and Type |
Method Name and Description |
|---|---|
virtual void |
Start() 组件启动。 |
virtual void |
组件每帧更新。 |
virtual void |
PostUpdate(f32 deltaTime) 组件每帧更新后再处理更新。 |
const SceneManager* |
GetSceneManager() const 获取SceneManager指针。 |
Constructor |
|---|
IComponent(SceneObject* object) 构造函数。 |
Parameters
Name |
Description |
|---|---|
object |
指定初始化的场景对象。 |
Destructor |
|---|
virtual ~IComponent() 析构函数。 |
Method |
|---|
virtual void Start() 组件启动。 |
Method |
|---|
virtual void Update(f32 deltaTime) 组件每帧更新。 |
Parameters
Name |
Description |
|---|---|
deltaTime |
帧间隔时间,单位为秒。 |
Method |
|---|
virtual void PostUpdate(f32 deltaTime) 组件每帧更新后再处理更新。 |
Parameters
Name |
Description |
|---|---|
deltaTime |
帧间隔时间,单位为秒。 |
Method |
|---|
const SceneManager* GetSceneManager() const 获取SceneManager指针。 |
Returns
Type |
Description |
|---|---|
const SceneManager* |
返回SceneManager指针。 |
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功