User Tools

Site Tools


transformchildrenchangedtopic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
transformchildrenchangedtopic [2026/04/25 10:28] divinertransformchildrenchangedtopic [2026/04/25 10:35] (current) diviner
Line 1: Line 1:
-===== TransformChildrenUpdatedTopic =====+===== TransformChildrenChangedTopic =====
  
 ^Namespace | CREAT3D.ECS.DataModel.EventSystems.Topics | ^Namespace | CREAT3D.ECS.DataModel.EventSystems.Topics |
-^Payload | [[EmptyMessage]] |+^Payload | [[ValueMessage]]<IEntity, bool> |
 ^Broadcaster | [[ITransformComponent]] | ^Broadcaster | [[ITransformComponent]] |
  
-This topic is broadcast from the [[ITransformComponent|TransformComponent]] of an [[Entity]] whenever the transform's Position or Rotation value changes. If transform contains child entities, their positions and rotations are also modified along with the parent's, and this broadcast is used to trigger lookups on a transform'children and their new values.+This topic is broadcast from the [[ITransformComponent|TransformComponent]] of an [[Entity]] whenever the transform loses or gains child [[Entity]]. Child loss can either happen by manual removal or child destruction. The payload contains two values; the child [[Entity]] that was modified and a boolean value that signals whether the child [[Entity]] was added (true) or removed (false). Child addition and removal is meant to be achieved by modifying the child'Parent value, rather than manipulating the parent's Children collection.
transformchildrenchangedtopic.txt · Last modified: by diviner

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki