using UnityEngine;
using System.Collections;
// Person将能在Inspector中编辑
[System.Serializable]
public class Person
{
public string name;
public int age;
}
public class MyClass : MonoBehaviour {
public Person[] person;
// myScale将能在Inspector中编辑
[SerializeField]
private float myScale;
}
【Unity编辑器】面板中显示Private修饰的变量
最新推荐文章于 2023-12-11 22:57:39 发布