docs.unity3d.com
    Show / Hide Table of Contents

    Class CameraItemFactory

    Camera Factory Service (Create a camera)

    Inheritance
    Object
    CameraItemFactory
    Namespace: Unity.Industrial.Forma.Editor.UI.Components
    Syntax
    [MovedFrom(true, "UnityEditor.Industrial.Configuring.UI", "Unity.Industrial.Configurator.Editor", null)]
    public static class CameraItemFactory

    Methods

    CreateCameraItemRow(Boolean)

    Create a camera item row with current scene view

    Declaration
    public static StagingItemRow CreateCameraItemRow(bool createThumbnail = true)
    Parameters
    Type Name Description
    Boolean createThumbnail

    Create thumbnail with camera setup

    Returns
    Type Description
    StagingItemRow

    Created StagingItemRow instance

    CreateCameraItemRow(Vector3, Quaternion, Single, Boolean)

    Create a camera item row with desired position and rotation

    Declaration
    public static StagingItemRow CreateCameraItemRow(Vector3 position, Quaternion rotation, float fieldOfView, bool createThumbnail = true)
    Parameters
    Type Name Description
    Vector3 position

    Desired camera position

    Quaternion rotation

    Desired camera rotation

    Single fieldOfView

    Desired camera field of view

    Boolean createThumbnail

    Create thumbnail with camera setup

    Returns
    Type Description
    StagingItemRow

    Created StagingItemRow instance

    Back to top
    Terms of use
    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