GameObject.cs 897 B

123456789101112131415161718192021222324
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using System;
  4. using System.Runtime.CompilerServices;
  5. namespace BansheeEngine
  6. {
  7. /// <summary>
  8. /// A base class for objects that can be part of the scene and referenced by other game objects.
  9. /// </summary>
  10. public class GameObject : ScriptObject
  11. {
  12. /// <summary>
  13. /// Returns a unique ID for the game object.
  14. /// </summary>
  15. public UInt64 InstanceId
  16. {
  17. get { return Internal_GetInstanceId(mCachedPtr); }
  18. }
  19. [MethodImpl(MethodImplOptions.InternalCall)]
  20. private static extern UInt64 Internal_GetInstanceId(IntPtr thisPtr);
  21. }
  22. }