コード例 #1
0
        protected override IToolbar CreateDecorator(Type decoratorType, UnityObject[] targets)
        {
            var strip = decoratorType.Instantiate(false, ArrayTypeUtility.RetypeArray(targets)).CastTo <IToolbar>();

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

            return(editorTool);
        }