Ejemplo n.º 1
0
 /// <summary>
 /// Set in DrawRoot of all REbase
 /// </summary>
 /// <param name="setter">Setter of the object used to set the RectTransform</param>
 private void SetRealSize(RectTransformBSetter setter)
 {
     width = setter.width;
     heigh = setter.height;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Must be set in AddComponents() of each component that use GetPercentagesSize()
 /// </summary>
 /// <param name="setter">A new created setter of the particular component</param>
 protected void SetReferenceSize(RectTransformBSetter setter)
 {
     referenceWidth = setter.width;
     referenceHeigh = setter.height;
 }