Example #1
0
        public UdonGraphStatus(VisualElement detailsContainer)
        {
            _detailsContainer = detailsContainer;

            _label = new TextElement()
            {
                text = "-", name = "Content"
            };
            _label.StretchToParentSize();
            Add(_label);
            OnValueChanged(ShowGraphAssetDetails);

            _programSourceView = new UdonProgramSourceView();
        }
Example #2
0
        public UdonGraphStatus(VisualElement detailsContainer)
        {
            _detailsContainer = detailsContainer;

            _label = new TextElement()
            {
                text = "-", name = "Content"
            };
            _label.StretchToParentSize();
            Add(_label);
#if UNITY_2019_3_OR_NEWER
            this.RegisterValueChangedCallback(ShowGraphAssetDetails);
#else
            OnValueChanged(ShowGraphAssetDetails);
#endif

            _programSourceView = new UdonProgramSourceView();
        }