Search Results for

    Show / Hide Table of Contents

    Class CameraRotationConfiguration

    Inheritance
    System.Object
    CameraRotationConfiguration
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Immersive.Camera
    Assembly: cs.temp.dll.dll
    Syntax
    public class CameraRotationConfiguration

    Constructors

    CameraRotationConfiguration(ImmersiveManagerSettings, RuntimeSettings, ExperienceSettings)

    A constructor which will generate a CameraRotationConfiguration based upon an ImmersiveManagerSettingsObject and a RuntimeSettings Object.

    Declaration
    public CameraRotationConfiguration(ImmersiveManagerSettings immersiveSettings, RuntimeSettings runtimeSettings, ExperienceSettings experienceSettings)
    Parameters
    Type Name Description
    ImmersiveManagerSettings immersiveSettings

    The ImmersiveManagerSettings used for camera rotation setup

    RuntimeSettings runtimeSettings

    The RuntimeSettings used for camera rotation setup

    ExperienceSettings experienceSettings

    The ExperienceSettings used for camera rotation setup

    Properties

    IsRotationSupported

    Declaration
    public bool IsRotationSupported { get; }
    Property Value
    Type Description
    System.Boolean

    LeftButtonSprite

    Declaration
    public Sprite LeftButtonSprite { get; }
    Property Value
    Type Description
    Sprite

    RightButtonSprite

    Declaration
    public Sprite RightButtonSprite { get; }
    Property Value
    Type Description
    Sprite

    RotationDuration

    Declaration
    public float RotationDuration { get; }
    Property Value
    Type Description
    System.Single

    Methods

    GetTargetPosition(CameraRotation)

    Calculates the target localPosition of the camera system for the provided CameraRotation.

    Declaration
    public Vector3 GetTargetPosition(CameraRotation rotation)
    Parameters
    Type Name Description
    CameraRotation rotation

    CameraRotation

    Returns
    Type Description
    Vector3

    New target position

    GetTargetRotation(CameraRotation)

    Calculates the target localRotation of the camera system for the provided CameraRotation.

    Declaration
    public Quaternion GetTargetRotation(CameraRotation rotation)
    Parameters
    Type Name Description
    CameraRotation rotation

    CameraRotation

    Returns
    Type Description
    Quaternion

    New target rotation

    IsValidRotation(CameraRotation)

    Determines whether it is valid for the current configuration to be in the provided CameraRotation.

    Declaration
    public bool IsValidRotation(CameraRotation rotation)
    Parameters
    Type Name Description
    CameraRotation rotation

    CameraRotation to check

    Returns
    Type Description
    System.Boolean

    True if valid

    In This Article
    Back to top Immersive Interactive