[System.Serializable]
public class CmyObj{
....
}
public class XXX: MonoBehavior{
[HideInInspector]
public CmyObj m_myObj;//use public+[HideInInspector] instead of private, or there will be errors
void Start(){
}
void Update(){
}
}
时间: 2024-10-02 10:18:30