public CompositeSpriteControllerBaseRestoreData(CompositeSpriteControllerBaseRestoreData baseData) { currentImageName = baseData.currentImageName; transformRestoreData = baseData.transformRestoreData; color = baseData.color; renderQueue = baseData.renderQueue; }
public CompositeSpriteControllerBaseRestoreData(string currentImageName, Transform transform, Color color, int renderQueue) { this.currentImageName = currentImageName; transformRestoreData = new TransformRestoreData(transform); this.color = color; this.renderQueue = renderQueue; }
public RectTransformRestoreData(RectTransform rect) { anchor = new Vector4Data(rect.anchorMin, rect.anchorMax); offset = new Vector4Data(rect.offsetMin, rect.offsetMax); }
public TransformRestoreData(Transform transform) { localPosition = transform.localPosition; localRotation = transform.localRotation; localScale = transform.localScale; }