场景组件基类.
更多...
#include <SceneComponent.h>
◆ AddPosition()
| void SceneComponent::AddPosition |
( |
const Vector2D & | pos | ) |
|
|
inline |
◆ AddRotation()
| void SceneComponent::AddRotation |
( |
float | rot | ) |
|
|
inline |
◆ AttachTo()
设置所属组件
实现场景组件的绑定 同时实现物体和子组件的绑定.
- 参数
-
◆ BeginPlay()
| virtual void SceneComponent::BeginPlay |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Destruct()
| void SceneComponent::Destruct |
( |
| ) |
|
|
virtual |
◆ DetachForm()
解除所属组件.
解除场景组件之间的绑定.
- 参数
-
这里有个逻辑问题一定要先解除再绑定
解决办法1.加上判定条件if(parent==par)
- 参数
-
◆ EndPlay()
| virtual void SceneComponent::EndPlay |
( |
| ) |
|
|
inlineoverridevirtual |
◆ GetLocalPosition()
| Vector2D SceneComponent::GetLocalPosition |
( |
| ) |
const |
|
inline |
◆ GetLocalRotation()
| float SceneComponent::GetLocalRotation |
( |
| ) |
const |
|
inline |
◆ GetLocalScale()
| Vector2D SceneComponent::GetLocalScale |
( |
| ) |
const |
|
inline |
◆ GetWorldPosition()
| Vector2D SceneComponent::GetWorldPosition |
( |
| ) |
const |
◆ GetWorldRotation()
| float SceneComponent::GetWorldRotation |
( |
| ) |
const |
◆ GetWorldScale()
| Vector2D SceneComponent::GetWorldScale |
( |
| ) |
const |
◆ process_Destruct()
| void SceneComponent::process_Destruct |
( |
| ) |
|
|
protected |
◆ SetLocalPosition()
| void SceneComponent::SetLocalPosition |
( |
const Vector2D & | pos | ) |
|
|
inline |
◆ SetLocalRotation()
| void SceneComponent::SetLocalRotation |
( |
float | rot | ) |
|
|
inline |
◆ SetLocalScale()
| void SceneComponent::SetLocalScale |
( |
const Vector2D & | scale | ) |
|
|
inline |
◆ Update()
| virtual void SceneComponent::Update |
( |
float | deltaTime | ) |
|
|
inlineoverridevirtual |
◆ children
◆ parent
◆ transform