protected override IToolbar CreateDecorator(Type decoratorType, UnityObject[] targets) { var strip = decoratorType.Instantiate(false, ArrayTypeUtility.RetypeArray(targets)).CastTo <IToolbar>(); strip.Initialize(); return(strip); }
protected override IEditorTool CreateDecorator(Type decoratorType, UnityObject[] targets) { var editorTool = decoratorType.Instantiate(false, ArrayTypeUtility.RetypeArray(targets)).CastTo <IEditorTool>(); return(editorTool); }