public void MachineStateUI(string name, string title, UnsMachineLogic.MachineState state) { GUILayout.BeginVertical(); GUILayout.Label(title); PropertyField(name, "c_gos_Show", "显示模型"); PropertyField(name, "c_gos_Hide", "隐藏模型"); SetPath(state.c_gos_Show, ref state.Show); SetPath(state.c_gos_Hide, ref state.Hide); GUILayout.EndVertical(); }
public void BoundMachineStateUI(UnsMachineLogic.MachineState state) { state.c_gos_Hide = ControlTools.FindObjects(state.Hide); state.c_gos_Show = ControlTools.FindObjects(state.Show); }