Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  prime 1 month, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35035

    alfred0919
    Participant

    Hello guys can i ask how to get my player entity to code through JavaScript or C#
    because i want to disable my player entity is Active

    #35039

    prime
    Keymaster

    The MonoBehaviour that you can look for on the player object is an EntityRig. So

    EntityRig tRig = playerGameObject.GetComponentInChildren<EntityRig>();
    if (tRig != null)
      tRig.Entity.IsActive = false;
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.