PlayerControllerabsoluteToRelativeScalingReferenceResolution Property |
The reference resolution for absolute to relative value scaling.
This is used in conjunction with
absoluteToRelativeScalingMode to
determine how to scale absolute values to relative values.
When
absoluteToRelativeScalingMode is set to any of the screen / viewport
scaling modes, if the scaling mode is based on the horizontal dimension of the screen / viewport, the horizontal resolution will
be divided by the reference X resolution to determine the final scaling factor. For example, if the horizontal reference resolution
is 1920 pixels and the current screen / viewport horizontal resolution is 3840 pixels, the final scaling multiplier will be 2, resulting
in a doubling of value to compensate for the increased resolution.
If the scaling mode is based on the vertical dimension of the screen / viewport, the vertical resolution will
be divided by the reference Y resolution to determine the final scaling factor. For example, if the vertical reference resolution
is 1080 pixels and the current screen / viewport horizontal resolution is 720 pixels, the final scaling multiplier will be 0.66667, resulting
in a reduction of value to compensate for the decreased resolution.
[Default = 1920x1080]
Namespace: RewiredAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static Vector2 absoluteToRelativeScalingReferenceResolution { get; set; }
Property Value
Vector2
See Also