예제 #1
0
        public override void OnInspectorGUI()
        {
            DepthRenderer god = (DepthRenderer)target;

            if (GUILayout.Button("Rebuild"))
            {
                //god.Rebuild();
            }

            DrawDefaultInspector();
        }
예제 #2
0
        void OnDrawGizmosSelected()
        {
            DepthRenderer god = (DepthRenderer)target;

            if (god != null)
            {
                // Draws a blue line from this transform to the target
                Gizmos.color = Color.blue;
                Gizmos.DrawLine(god.transform.position, Vector3.zero);
            }
        }