/// <summary> /// Copies all state data to the specified target. /// </summary> /// <param name="target"></param> public void CopyTo(CanvasState target) { target.batchInfo = this.batchInfo; target.uvGenRect = this.uvGenRect; target.texBaseSize = this.texBaseSize; target.color = this.color; target.depthOffset = this.depthOffset; target.transformAngle = this.transformAngle; target.transformHandle = this.transformHandle; target.transformScale = this.transformScale; target.UpdateTransform(); }
public CanvasState(CanvasState other) { other.CopyTo(this); }
public CanvasState(CanvasState other) { this.canvas = other.canvas; other.CopyTo(this); }