public UnityColorReference(IColorElement colorElement, IExpression owningExpression, ITreeNode owner,
                                   DocumentRange colorConstantRange)
        {
            myOwningExpression = owningExpression;
            ColorElement       = colorElement;
            Owner = owner;
            ColorConstantRange = colorConstantRange;

            BindOptions = new ColorBindOptions
            {
                BindsToName  = true,
                BindsToValue = true
            };
        }
예제 #2
0
        public ShaderLabColorReference(IColorElement colorElement, IColorPropertyValue colorPropertyValue, IColorValue colorValue, DocumentRange colorConstantRange)
        {
            myColorPropertyValue = colorPropertyValue;
            myColorValue         = colorValue;
            ColorElement         = colorElement;
            Owner = (ITreeNode)colorValue ?? colorPropertyValue;
            ColorConstantRange = colorConstantRange;

            BindOptions = new ColorBindOptions
            {
                BindsToName  = false,
                BindsToValue = true
            };
        }
        public UnityColorReference(IColorElement colorElement, IExpression owningExpression, ITreeNode owner,
            DocumentRange colorConstantRange)
        {
            myOwningExpression = owningExpression;
            ColorElement = colorElement;
            Owner = owner;
            ColorConstantRange = colorConstantRange;

            BindOptions = new ColorBindOptions
            {
                BindsToName = true,
                BindsToValue = true
            };
        }