-
-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
…ponent behavior We were keeping entities w/ LocalTransformComponent parented under the parent entities
@@ -15,7 +15,7 @@ export const removeEntity = (entity: Entity, immediately = false, world = Engine | |||
bitECS.removeEntity(world, entity) | |||
} else { | |||
removeAllComponents(entity, world) | |||
addComponent(entity, EntityRemovedComponent, {}) | |||
addComponent(entity, EntityRemovedComponent, null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the reasoning for this? it will cause hasComponent checks to always return false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it won't
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats the reason for doing this instead of true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true takes up space, and isn't necessary; it's annoying that we even have to pass null, frankly, but it doesn't seem possible to have optional generic parameters that are also sometimes required
…on/XREngine into image-component-fixes
This reverts commit e1cd381.
Summary
createMappedComponent
defineComponent
References
closes #insert number here
Checklist
QA Steps
List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.