Fix not using hardcoded order for showing Actor main properties in editor
This commit is contained in:
@@ -597,6 +597,11 @@ void Actor::SetDirection(const Vector3& value)
|
||||
SetOrientation(orientation);
|
||||
}
|
||||
|
||||
void Actor::ResetLocalTransform()
|
||||
{
|
||||
SetLocalTransform(Transform::Identity);
|
||||
}
|
||||
|
||||
void Actor::SetLocalTransform(const Transform& value)
|
||||
{
|
||||
CHECK(!value.IsNanOrInfinity());
|
||||
@@ -1258,6 +1263,11 @@ Script* Actor::GetScriptByPrefabObjectId(const Guid& prefabObjectId) const
|
||||
return result;
|
||||
}
|
||||
|
||||
bool Actor::IsPrefabRoot() const
|
||||
{
|
||||
return _isPrefabRoot != 0;
|
||||
}
|
||||
|
||||
Actor* Actor::FindActor(const StringView& name) const
|
||||
{
|
||||
Actor* result = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user