Merge pull request #152 from SHADE-DP/SP3-6-c-scripting
Added EntityID retrieval from GameObject and compiled docs for Intellisense in C# projects
This commit is contained in:
commit
e8553b6181
|
@ -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()
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue