Interface IMiniWorld
For the purpose of interacting with MiniWorlds
Namespace: UnityEditor.Experimental.EditorVR
Syntax
public interface IMiniWorld
Properties
ignoreList
Sets a list of renderers to be skipped when rendering the MiniWorld
Declaration
List<Renderer> ignoreList { set; }
Property Value
Type | Description |
---|---|
List<Renderer> |
miniWorldTransform
Gets the root transform of the miniWorld itself
Declaration
Transform miniWorldTransform { get; }
Property Value
Type | Description |
---|---|
Transform |
referenceTransform
Gets the reference transform used to represent the origin and size of the space represented within the miniWorld
Declaration
Transform referenceTransform { get; }
Property Value
Type | Description |
---|---|
Transform |
Methods
Contains(Vector3)
Tests whether a point is contained within the actual miniWorld bounds (not the reference bounds)
Declaration
bool Contains(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | World space point to be tested |
Returns
Type | Description |
---|---|
Boolean | True if the point is contained |
GetWorldToCameraMatrix(Camera)
Matrix that converts from the mini world space to reference space (which may have scale and translation)
Declaration
Matrix4x4 GetWorldToCameraMatrix(Camera camera)
Parameters
Type | Name | Description |
---|---|---|
Camera | camera |
Returns
Type | Description |
---|---|
Matrix4x4 |