docs.unity3d.com
    目次を表示する/隠す

    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
    Unity.XRTools.Utils.Internal.ScriptableSettingsBase.GetInstanceByType(System.Type)
    ScriptableSettingsBase.OnLoaded()
    Namespace: UnityEditor.MARS
    Syntax
    [MovedFrom(true, "Unity.MARS", null, null)]
    public class MarsWorldScaleModule : EditorScriptableSettings<MarsWorldScaleModule>, IModule

    Properties

    MaxScale

    Maximum world scale

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

    MinScale

    Minimum world scale

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

    Methods

    AdjustWorldScale(Single)

    Adjust all the scene objects to target world scale

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

    New target world scale

    Returns
    Type Description
    Single

    Current world scale after adjusting

    ApplyWorldScaleToEnvironment()

    Scales synthetic environment components with scalar values not effect by the lossy scale of an object.

    Declaration
    public void ApplyWorldScaleToEnvironment()

    GetWorldScale()

    Get the current world scale in the active MARS session

    Declaration
    public static float GetWorldScale()
    Returns
    Type Description
    Single

    Current world scale

    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()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)