public static pb_Smoothing_Editor Init(pb_Texture_Editor del, pb_Object[] _selection) { pb_Smoothing_Editor pse = (pb_Smoothing_Editor)EditorWindow.GetWindow(typeof(pb_Smoothing_Editor), true, "Smoothing Groups", true); pse.SetDelegate(del); pse.UpdateSelection(_selection); return pse; }
public static pb_Smoothing_Editor Init(pb_Texture_Editor del, pb_Object[] _selection) { pb_Smoothing_Editor pse = (pb_Smoothing_Editor)EditorWindow.GetWindow(typeof(pb_Smoothing_Editor), true, "Smoothing Groups", true); pse.SetDelegate(del); pse.UpdateSelection(_selection); return(pse); }
public void OnEnable() { LoadPrefs(); pb_Editor.OnSelectionUpdate += new pb_Editor.OnSelectionUpdateEventHandler(OnSelectionUpdate); this.minSize = new Vector2(245, 448); this.autoRepaintOnSceneChange = true; instanceIfExists = this; if (pb_Editor.instanceIfExists) { OnSelectionUpdate(pb_Editor.instanceIfExists.selection); pb_Editor.instanceIfExists.SetSelectionMode(SelectMode.Face); } }
public void SetDelegate(pb_Texture_Editor _del) { textureWindow = _del; }
public void OnEnable() { LoadPrefs(); pb_Editor.OnSelectionUpdate += new pb_Editor.OnSelectionUpdateEventHandler(OnSelectionUpdate); this.minSize = new Vector2(245, 448); this.autoRepaintOnSceneChange = true; instanceIfExists = this; if(pb_Editor.instanceIfExists) { OnSelectionUpdate(pb_Editor.instanceIfExists.selection); pb_Editor.instanceIfExists.SetSelectionMode(SelectMode.Face); } }