ドキュメント

Unity Engine

Unity Engine

transparencySortMode

Transparent object sorting mode.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public TransparencySortMode transparencySortMode { get; set; }

Remarks

By default, perspective Cameras sort objects based on distance from Camera position to the object pivot; and orthographic Cameras sort based on distance along the view direction.
If you're making a 2D game with a perspective Camera, you might want to use TransparencySortMode.Orthographic sort mode so that objects are sorted based on distance along the Camera's view.
Additional Resources: TransparencySortMode enum, Camera.opaqueSortMode.