Added EntityID retrieval from GameObject
This commit is contained in:
parent
c08afcb804
commit
69e625014d
|
@ -72,6 +72,10 @@ namespace SHADE
|
|||
}
|
||||
return node->IsActive();
|
||||
}
|
||||
Entity GameObject::EntityId::get()
|
||||
{
|
||||
return entity;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------------*/
|
||||
/* GameObject Property Functions */
|
||||
|
|
|
@ -86,6 +86,13 @@ namespace SHADE
|
|||
{
|
||||
bool get();
|
||||
}
|
||||
/// <summary>
|
||||
/// Native Entity ID value for this GameObject.
|
||||
/// </summary>
|
||||
property Entity EntityId
|
||||
{
|
||||
Entity get();
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
/* GameObject Property Functions */
|
||||
|
|
|
@ -38,7 +38,6 @@ public class PhysicsTest : Script
|
|||
RigidBody.AddForce(Force);
|
||||
Debug.Log($"Jump!");
|
||||
}
|
||||
Debug.Log($"{Transform.LocalPosition.y}");
|
||||
}
|
||||
|
||||
protected override void fixedUpdate()
|
||||
|
|
Loading…
Reference in New Issue