Interface IEditingContext
Implement this interface to create an editing context. You can also specify your own custom settings within the context to be applied to the specified VR editor (e.g. EditorVR).
Namespace: UnityEditor.Experimental.EditorVR
Syntax
public interface IEditingContext
Properties
copyMainCameraImageEffectsToHMD
Bool denotes that the scene's enabled Main Camera image effects should be cloned on the EditorXR HMD camera
Declaration
bool copyMainCameraImageEffectsToHMD { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
copyMainCameraImageEffectsToPresentationCamera
Bool denotes that the scene's enabled Main Camera image effects should be cloned on the EditorXR presentation camera
Declaration
bool copyMainCameraImageEffectsToPresentationCamera { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
copyMainCameraSettings
Bool denotes that the scene Main Camera (component) values should be cloned on the EditorXR runtime camera
Declaration
bool copyMainCameraSettings { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
instanceExists
Bool denotes that the EditorVR instance exists, having already been created in Setup()
Declaration
bool instanceExists { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
name
Name for this specific instance of an editing context
Declaration
string name { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
Dispose()
Allow the context to dispose of any created objects when popped from the stack.
Declaration
void Dispose()
Setup()
Perform one-time setup for the context when pushed to the stack.
Declaration
void Setup()