public void UpdateGameObjectProperties() { if (m_rightPanel == null || m_rightPanel.Content.Controls.Count == 0 || !(m_rightPanel.Content.Controls[0] is GameObjectPropertiesControl)) { return; } GameObjectPropertiesControl editor = m_rightPanel.Content.Controls[0] as GameObjectPropertiesControl; editor.UpdateEditorsValues(); }
public void ExploreGameObjectProperties(int handle, bool isPrefab) { if (m_rightPanel == null) { return; } m_rightPanel.Content.Controls.Clear(); if (handle != 0) { GameObjectPropertiesControl editor = new GameObjectPropertiesControl(handle, isPrefab); editor.Dock = DockStyle.Fill; m_rightPanel.Content.Controls.Add(editor); m_rightPanel.Unroll(); } }