Class MARSWorldScaleModule
Manages world scale adjustment for each scene
Inheritance
MARSWorldScaleModule
Syntax
public class MARSWorldScaleModule : EditorScriptableSettings<MARSWorldScaleModule>, IModule
Properties
largeScaleIcon
Declaration
public MARSWorldScaleModule.ScaleVisual largeScaleIcon { get; }
Property Value
maxScale
Declaration
public float maxScale { get; }
Property Value
maxScaleExponent
Declaration
public int maxScaleExponent { get; }
Property Value
minScale
Declaration
public float minScale { get; }
Property Value
minScaleExponent
Declaration
public int minScaleExponent { get; }
Property Value
scaleOneIcon
Declaration
public MARSWorldScaleModule.ScaleVisual scaleOneIcon { get; }
Property Value
smallScaleIcon
Declaration
public MARSWorldScaleModule.ScaleVisual smallScaleIcon { get; }
Property Value
visualsZeroIndex
Declaration
public int visualsZeroIndex { 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()
ClearEnvironmentRangeScaledComponents()
Clears the list of Components that have scalar values that need world scale applied to them
Declaration
public void ClearEnvironmentRangeScaledComponents()
GetEnvironmentRangeScaledComponents(GameObject)
Gets Components that have values that need world scale applied to them.
Declaration
public void GetEnvironmentRangeScaledComponents(GameObject go)
Parameters
Type |
Name |
Description |
GameObject |
go |
game object that we are getting components on
|
GetWorldScale()
Declaration
public static float GetWorldScale()
Returns
LoadModule()
Declaration
Implements
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
|
UnloadModule()
Declaration
public void UnloadModule()
Implements
UpdateScaleReference()
Declaration
public void UpdateScaleReference()