ワイヤフレームでレンダリングすべきか。
Wireframe モードをオンにすると
ワイヤフレームに戻るまで呼び出しの後に描画されるすべてのオブジェクトに影響を与えます。 Unity エディターで
Wireframe モードは任意のウィンドウを再描画する前に常にオフです。
いくつかのプラットフォーム、例えばモバイル (OpenGL ES) ではワイヤフレームレンダリングがサポートされていないことに
注意してください。
// Attach this script to a camera, this will make it render in wireframe
function OnPreRender() {
GL.wireframe = true;
}
function OnPostRender() {
GL.wireframe = false;
}
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void OnPreRender() { GL.wireframe = true; } void OnPostRender() { GL.wireframe = false; } }