ドキュメント

Unity Engine

Unity Engine

SetDrawDepth3D(Vector3)

Sets the draw depth from a 3D position, using the axis that matches the current transform plane.
読み終わるまでの所要時間 1 分最終更新 22日前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public void SetDrawDepth3D(Vector3 position)

Parameters

position

The 3D position to take the draw depth from.

Remarks

The relevant axis is taken from the position using the current PhysicsWorld.transformPlane. If PhysicsWorld.TransformPlane.Custom is used, the draw depth is set to zero. See PhysicsWorld.drawDepth.