Class RectTransformCubeScaler
RectTransforms do not scale 3d objects (such as unit cubes) to fit within their bounds. This helper class will apply a scale to fit a unit cube into the bounds specified by the RectTransform. The Z component is scaled to the min of the X and Y components.
Implements
MonoBehaviour
Namespace: Microsoft.MixedReality.Toolkit.Utilities
Assembly: cs.temp.dll.dll
Syntax
public class RectTransformCubeScaler : MonoBehaviour, MonoBehaviour
Implements
MonoBehaviour