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.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static void UnregisterTransformChange(Transform transform, PhysicsCallbacks.ITransformChangedCallback callback)
Parameters
The transform to stop watching changes on.
The callback to stop being called when a transform change is detected.