Class MarsWorldScaleModule
Manages world scale adjustment for each scene
Inheritance
MarsWorldScaleModule
Syntax
[MovedFrom(true, "Unity.MARS", null, null)]
public class MarsWorldScaleModule : EditorScriptableSettings<MarsWorldScaleModule>, IModule
Properties
MaxScale
Declaration
public float MaxScale { get; }
Property Value
MinScale
Declaration
public float MinScale { get; }
Property Value
Methods
AdjustWorldScale(Single)
Declaration
public float AdjustWorldScale(float scale)
Parameters
Type |
Name |
Description |
Single |
scale |
|
Returns
ApplyWorldScaleToEnvironment()
Scales synthetic environment components with scalar values not effect by the lossy scale of an object.
Declaration
public void ApplyWorldScaleToEnvironment()
GetWorldScale()
Declaration
public static float GetWorldScale()
Returns
Scale the child objects local position and scale by the current world scale.
Declaration
public static void ScaleChildren(Transform parent)
Parameters
Type |
Name |
Description |
Transform |
parent |
Parent transform of the children to scale
|
Explicit Interface Implementations
Declaration
void IModule.LoadModule()
Implements
Declaration
void IModule.UnloadModule()
Implements