ComponentColors GetComponentColors(Controller ctrl) { ComponentColors cc = ctrl.GetAdditionalData(ref component_colors); if (cc.tex == null) { cc.tex = new Texture2D(4, 4, TextureFormat.RGB24, false, false); cc.tex.wrapMode = TextureWrapMode.Clamp; cc.tex.filterMode = FilterMode.Point; cc.cols = new Color32[16]; cc.modified = true; } return(cc); }
public ColorComponent(ComponentColors component) { this.Component = component; }