23 lines
634 B
C#
23 lines
634 B
C#
using UnityEngine;
|
|
|
|
public class CollisionNodeDescription : MonoBehaviour
|
|
{
|
|
public GUIStyle Style;
|
|
|
|
public RealWater WaterPlane;
|
|
|
|
private float native_width = 1920f;
|
|
|
|
private float native_height = 1080f;
|
|
|
|
private void OnGUI()
|
|
{
|
|
float x = (float)Screen.width / native_width;
|
|
float y = (float)Screen.height / native_height;
|
|
GUI.matrix = Matrix4x4.TRS(new Vector3(0f, 0f, 0f), Quaternion.identity, new Vector3(x, y, 1f));
|
|
GUI.depth = 10;
|
|
GUI.Box(new Rect(38.399998f, 32.399998f, 576f, 108f), "");
|
|
GUI.Label(new Rect(57.6f, 43.2f, 288f, 151.2f), "White = Normal Water Collider \n\nGray = Collision Nodes ", Style);
|
|
}
|
|
}
|