Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

NetCode Remove autoAdd child Translation and Rotation

Discussion in 'NetCode for ECS' started by Jawsarn, Jan 5, 2020.

  1. Jawsarn

    Jawsarn

    Joined:
    Jan 12, 2017
    Posts:
    215
    I can't find how DotsSample have removed the automagic add of children translation and rotation values. Updating component list in my own project always seem to add them if I haven't ticked it to be manual.
     
  2. MaverickROM

    MaverickROM

    Joined:
    Mar 19, 2019
    Posts:
    11
    Hey Jawsarn,

    Take a look at the DOTS Sample here: https://github.com/Unity-Technologi...ty.Sample.Game/GameBootstrap/GameBootStrap.cs

    Specifically, lines 28 and 29:

    GhostAuthoringComponentEditor.GhostDefaultOverrides.Remove("Unity.Transforms.Translation");
    GhostAuthoringComponentEditor.GhostDefaultOverrides.Remove("Unity.Transforms.Rotation");


    I think this is what you're after. I just had to go through something similar myself and this was the only place on the entire Internet I could find the answer.

    Hope this helps.
     
    Jawsarn likes this.