C#文字: public class NewBehaviourScript2 : MonoBehaviour { public Texture t; public GUISkin skin; // Use this for initialization void Start () { } void OnGUI(){ GUILayout.BeginArea(new Rect(0, 0, Screen.width, Screen.height)); GUI.skin = skin; GUILa…
例1: using UnityEngine; using System.Collections; using UnityEditor; using System.Collections.Generic; [CustomEditor(typeof(CmyScriptableObject))] public class myScriptableObjectCustomEditor : Editor { public Vector2 scrollPosition = Vector2.zero; pub…
OneImage.cs public class OneImage : MonoBehaviour { public int row, col; public Rect rect; public Texture texture; public bool walkable = true; public bool isinit = false; public bool selected = false; public OneImage() { } public OneImage(Rect rect,…