Пример #1
0
        public override void Enable(bool fromInspector)
        {
            base.Enable(fromInspector);
            selfNode = nodeTarget as SelfNode;

            controlsContainer.Add(new Button(selfNode.ResetOutputTexture)
            {
                text = "Reset"
            });
        }
Пример #2
0
        public override void Enable(bool fromInspector)
        {
            base.Enable(fromInspector);
            selfNode = nodeTarget as SelfNode;

            controlsContainer.Add(new IMGUIContainer(() => {
                // UIElements popup field are a pain to make
                var elementNames     = owner.graph.outputNode.outputTextureSettings.Select(t => t.name);
                selfNode.outputIndex = EditorGUILayout.Popup("Output", selfNode.outputIndex, elementNames.ToArray());
            }));
            controlsContainer.Add(new Button(ResetTexture)
            {
                text = "Reset"
            });
        }