Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UnregisterTransformChange(Transform, ITransformChangedCallback)

Unregister a transform watched to stop calling the specified callback when a transform changes. See PhysicsEvents.TransformChangeEvent for the types of transform changes that are watched for.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static void UnregisterTransformChange(Transform transform, PhysicsCallbacks.ITransformChangedCallback callback)

Parameters

transform

The transform to stop watching changes on.

The callback to stop being called when a transform change is detected.