Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

[SOLVED]How to use CopyTransformToGameObject

Discussion in 'Entity Component System' started by debuggerpls, Mar 13, 2020.

  1. debuggerpls

    debuggerpls

    Joined:
    Dec 1, 2019
    Posts:
    6
    Hello,
    can someone explain how to use CopyTransformToGameObject. I searched forums and still cannot figure out how to use it. I just need to sync entities translation to the GO transform, but how do i set them up together..
    Ty
     
  2. Curlyone

    Curlyone

    Joined:
    Mar 15, 2018
    Posts:
    41
    Hi

    Make an authoring component and add CopyTransformToGameObject to your entity, and make sure your entity conversion mode is Convert and Inject.
     
    debuggerpls likes this.
  3. debuggerpls

    debuggerpls

    Joined:
    Dec 1, 2019
    Posts:
    6
    Ok, im such a noob. Thank you for your help!