public static RectRenderer InstantiateRect(RectProperty property) { var go = new GameObject("Rect"); var rd = go.AddComponent <RectRenderer>(); rd.property = property; return(rd); }
/* * RECT */ static void ApplyToRect(RectProperty obj) { /* * obj.color = color; * obj.Height = rectHeight; * obj.Width = rectWidth; * obj.Angle = angle; * * obj.borderStyle = borderStyle; * obj.borderPosition = borderPosition; * obj.dashLength = dashLength; * obj.gapLength = gapLength; */ }
public static void SetDefaultRectStyle(RectProperty obj) { /* * color = obj.color; * rectHeight = obj.Height; * rectWidth = obj.Width; * angle = obj.Angle; * * borderStyle = obj.borderStyle; * borderPosition = obj.borderPosition; * dashLength = obj.dashLength; * gapLength = obj.gapLength; */ }
protected override void CacheProperty() { cachedProperty = property.Clone() as RectProperty; propertyObjectChanged = false; }