protected void RecreateRopeButtons() { EditorGUILayout.BeginHorizontal(); bool v_forceRecreate = InspectorUtils.DrawButton("Force Recreate Rope", Color.cyan); bool v_refreshRope = InspectorUtils.DrawButton("Refresh Rope", Color.cyan); if (m_controller != null && m_controller.gameObject != null && !KiltUtils.IsPrefab(m_controller.gameObject, PrefabSearchMethodEnum.Full)) { if (v_forceRecreate) { m_controller.CreateRope(true); } else if (v_refreshRope) { m_controller.CreateRope(false); } } EditorGUILayout.EndHorizontal(); }