#How should I rewrite these two sentences in dots1.0?

1 messages · Page 1 of 1 (latest)

latent merlin
#
ECB.AddComponent(selectionUI, new Parent { Value = selectedEntity });
ECB.AddComponent<LocalToParent>(selectionUI);

in dots 1.0 , LocalToParent has removed.

tribal flare
#

LocalToParent -> LocalTransform

latent merlin
#

ECB.AddComponent(selectionUI, new Parent { Value = selectedEntity });
ECB.AddComponent<LocalTransform>(selectionUI); like this?

tribal flare
#

yeah, but you kind of need to ensure your transform is valid

#

default value will result it rotation to be 0.0.0.0. (quaternion)

#

which is NaN

#

LocalTransform.identity will do for most default transform