docs.unity3d.com
    Show / Hide Table of Contents

    Class MarsWorldScaleModule

    Manages world scale adjustment for each scene

    Inheritance
    Object
    ScriptableSettingsBase
    ScriptableSettingsBase<MarsWorldScaleModule>
    EditorScriptableSettings<MarsWorldScaleModule>
    MarsWorldScaleModule
    Inherited Members
    EditorScriptableSettings<MarsWorldScaleModule>.instance
    ScriptableSettingsBase<MarsWorldScaleModule>.k_HasCustomPath
    ScriptableSettingsBase<MarsWorldScaleModule>.s_Instance
    ScriptableSettingsBase<MarsWorldScaleModule>.Save(String)
    ScriptableSettingsBase<MarsWorldScaleModule>.GetFilePath()
    ScriptableSettingsBase.k_PathExceptionMessage
    ScriptableSettingsBase.GetInstanceByType(Type)
    ScriptableSettingsBase.OnLoaded()
    Namespace: UnityEditor.MARS
    Syntax
    [MovedFrom(true, "Unity.MARS", null, null)]
    public class MarsWorldScaleModule : EditorScriptableSettings<MarsWorldScaleModule>, IModule

    Properties

    MaxScale

    Declaration
    public float MaxScale { get; }
    Property Value
    Type Description
    Single

    MinScale

    Declaration
    public float MinScale { get; }
    Property Value
    Type Description
    Single

    Methods

    AdjustWorldScale(Single)

    Declaration
    public float AdjustWorldScale(float scale)
    Parameters
    Type Name Description
    Single scale
    Returns
    Type Description
    Single

    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
    Type Description
    Single

    ScaleChildren(Transform)

    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

    IModule.LoadModule()

    Declaration
    void IModule.LoadModule()
    Implements
    IModule.LoadModule()

    IModule.UnloadModule()

    Declaration
    void IModule.UnloadModule()
    Implements
    IModule.UnloadModule()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023