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 }; }
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 }; }