Search Unity

[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!