Class ViewContext
Inheritance
Namespace: UnityEditor.Rendering.LookDev
Syntax
[Serializable]
public class ViewContext
Properties
environment
The currently used Environment
Declaration
public Environment environment { get; }
Property Value
Type | Description |
---|---|
Environment |
viewedInstanceInPreview
The currently displayed instance of viewedObjectReference. It will be instantiated when pushing changes to renderer. See SaveContextChangeAndApply(ViewIndex)
Declaration
public GameObject viewedInstanceInPreview { get; }
Property Value
Type | Description |
---|---|
GameObject |
viewedObjectReference
Reference to the object given for instantiation.
Declaration
public GameObject viewedObjectReference { get; }
Property Value
Type | Description |
---|---|
GameObject |
Methods
UpdateEnvironment(Object)
Update the environment used.
Declaration
public void UpdateEnvironment(Object environmentOrCubemapAsset)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Object | environmentOrCubemapAsset | The new Environment to use.
Or the |
UpdateViewedObject(GameObject)
Update the object reference used for instantiation.
Declaration
public void UpdateViewedObject(GameObject viewedObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | viewedObject | The new reference. |