GameObject.cs 645 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. namespace BansheeEngine
  4. {
  5. /// <summary>
  6. /// A base class for objects that can be part of the scene and referenced by other game objects.
  7. /// </summary>
  8. public class GameObject : ScriptObject
  9. {
  10. /// <summary>
  11. /// Returns a unique ID for the game object.
  12. /// </summary>
  13. public UInt64 InstanceId
  14. {
  15. get { return Internal_GetInstanceId(mCachedPtr); }
  16. }
  17. [MethodImpl(MethodImplOptions.InternalCall)]
  18. private static extern UInt64 Internal_GetInstanceId(IntPtr thisPtr);
  19. }
  20. }