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

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

            return(editorTool);
        }