MESH_refresh() 공개 메소드

public MESH_refresh ( ) : void
리턴 void
예제 #1
0
    public override void OnInspectorGUI()
    {
        TileBase t = target as TileBase;

        TileBase.FACING faceTemp = t.facing;
        DrawDefaultInspector();
        //  t.transform.GetComponent<MeshRenderer>().sharedMaterial = EditorGUILayout.ObjectField(t.transform.GetComponent<MeshRenderer>().sharedMaterial, typeof(Material)) as Material;

        if (GUI.changed)
        {
            t._width  = Mathf.Clamp(t._width, 0, 999);
            t._height = Mathf.Clamp(t._height, 0, 999);

            if (faceTemp != t.facing)
            {
                t.transform.localEulerAngles = new Vector3(0, 0, 0);
            }

            t.MESH_refresh();
        }
        //  t.transform.GetComponent<MeshRenderer>().sharedMaterial = EditorGUI.ObjectField(new Rect(0, 200, 200, 25), t.transform.GetComponent<MeshRenderer>().sharedMaterial, typeof(Material));
    }
예제 #2
0
    public void SetFrame(int frame)
    {
//		tile._currentFrame = frame;
        tile.MESH_refresh();
    }