docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ViewContext

    Data container containing content of a view

    Inheritance
    object
    ViewContext
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering.LookDev
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    [Serializable]
    public class ViewContext

    Properties

    Name Description
    camera

    The position and rotation of the camera

    debug

    The currently viewed debugState

    environment

    The currently used Environment

    hasEnvironment

    Check if an Environment is registered for this view. The result will be accurate even if the Environment have not been reloaded yet.

    hasViewedObject

    Check if an Environment is registered for this view. The result will be accurate even if the object have not been reloaded yet.

    viewedInstanceInPreview

    The currently displayed instance of viewedObjectReference. It will be instantiated when pushing changes to renderer. See SaveContextChangeAndApply(ViewIndex)

    viewedObjectReference

    Reference to the object given for instantiation.

    Methods

    Name Description
    ResetCameraState()

    Reset the camera state to default values

    UpdateEnvironment(Object)

    Update the environment used.

    UpdateViewedObject(GameObject)

    Update the object reference used for instantiation.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)