お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseCamera による透明オブジェクトのソート モード
デフォルトでは Perspective カメラはオブジェクトの中心からカメラ位置までの 距離にもとづきオブジェクトをソートし、Orthographic カメラはカメラのビュー方向に沿った距離にもとづきソートします。 もし 2D ゲームを Perspective カメラで作成する場合、 TransparencySortMode.Orthographic ソートモードを使用して、 カメラのビュー方向に沿った距離にもとづきソートさせるのが良いです。 See Also: Camera.transparencySortMode
Default | デフォルトのソートモード |
Perspective | Perspective ソート モード |
Orthographic | Orthographic ソート モード |