#[1.0.0-pre.65] Baker issue

1 messages · Page 1 of 1 (latest)

timid marlin
#

@nimble hill Currently I have 2 baker issues and hopefully final 1.0 release will address both of the issues.

  1. I have child game object wants to remove during baking but baker failed to do that and still bake the redundant child entity. I would like Baker to have convenient destroy entity API that just work. It also can use to directly destroy some other parent entity that is not required

  2. Since currently there's no fake parent component to do child entity grouping I just add Parent component at child entity to achieve. But it will cause no LocalToWorld component error spamming when parent entity has LocalToWorld and LocalTransform components by current transform system design. Currently I just add LocalToWorld component to workaround the issue but it cost redundant computation

nimble hill
#
  1. What is referencing this child to cause it to continue to be kept?
timid marlin
nimble hill
#

If anything is calling GetEntity on those children, it will preserve them in most cases. Is that happening anywhere?

#

Also this sounds like something you could make into a simple repro, could you try that and share it?

timid marlin
#

I didn't call any GetEntity. I just directly reference it like authoring.childGameObject.

#

Alright. I try to create a simple repo.

nimble hill
#

It could be we have a bug in our automatic stripping, so the repro will help us determine that 😄

timid marlin
#

Btw how about 2)?

nimble hill
#

Honestly not fully understanding the issue you're describing there

timid marlin
timid marlin
# nimble hill Honestly not fully understanding the issue you're describing there

Basically at parent game object authoring calls GetEntity(authoring, TransformUsageFlags.Dynamic) then at child game object authoring calls var entity = GetEntity(authoring, TransformUsageFlags.ManualOverride); var parentEntity = GetEntity(authoring.transform.parent, TransformUsageFlags.Dynamic); AddComponent(entity, new Parent { Value = parentEntity } u will get the following error spamming at runtime when enter play mode