PhysicsEvents.TransformWriteEvent
An event produced and sent to the callback target set with _transformWriteCallbackTarget which must implement PhysicsCallbacks.ITransformWriteCallback which will have PhysicsCallbacks.ITransformWriteCallback.OnTransformWrite called allowing custom transform writing.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: IEquatable<TransformWriteEvent>
public readonly struct PhysicsEvents.TransformWriteEvent : IEquatable<PhysicsEvents.TransformWriteEvent>
Properties
Property | Description |
|---|---|
| physicsWorld | The physics world the event was created from. |
| simulationType | The simulation type of the physics world when the event was created. |
| transformPlane | The transform plane of the physics world when the event was created. |
| transformPlaneCustom | The transform plane (custom) of the physics world when the event was created. This maybe not be relevant unless the transform plane is PhysicsWorld.TransformPlane.Custom. |
| transformTweenMode | The transform tween mode of the physics world when the event was created. |
| tweens | The transform write tweens available to be configured. |