ドキュメント

Unity Engine

Unity Engine

transformWriteCallbackTarget

Get/Set the custom Object that implements the PhysicsCallbacks.ITransformWriteCallback to which PhysicsEvents.TransformWriteEvent and PhysicsEvents.TransformTweenWriteEvent will be sent. The callback will only occur if PhysicsWorld.transformWriteMode is set to PhysicsWorld.TransformWriteMode.Custom and there are PhysicsWorld.bodyUpdateEvents available. The object assigned here will be kept alive, not allowing the GC to dispose of it. To remove the object assigned here, set the callback target to NULL.
読み終わるまでの所要時間 1 分最終更新 21日前

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public object transformWriteCallbackTarget { get; set; }