Added EntityID retrieval from GameObject

This commit is contained in:
Kah Wei 2022-11-01 15:25:19 +08:00
parent c08afcb804
commit 69e625014d
3 changed files with 11 additions and 1 deletions

View File

@ -72,6 +72,10 @@ namespace SHADE
}
return node->IsActive();
}
Entity GameObject::EntityId::get()
{
return entity;
}
/*---------------------------------------------------------------------------------*/
/* GameObject Property Functions */

View File

@ -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 */

View File

@ -38,7 +38,6 @@ public class PhysicsTest : Script
RigidBody.AddForce(Force);
Debug.Log($"Jump!");
}
Debug.Log($"{Transform.LocalPosition.y}");
}
protected override void fixedUpdate()