Table of Contents

Class MapSceneViewPreview

Namespace
LansMap.Map.Views
Assembly
LansMap.Runtime.dll
[ExecuteAlways]
public sealed class MapSceneViewPreview : MonoBehaviour
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
MapSceneViewPreview

Fields

Distance

[Tooltip("Distance in world units from the source camera to the quad. Push it past world content you want to see in front of the map.")]
public float Distance

Field Value

float

FlipY

[Tooltip("Flip the mirrored image vertically. On by default, because most graphics systems deliver camera output upside down.")]
public bool FlipY

Field Value

bool

LockToSourceCamera

[Tooltip("Keep the preview plane snapped to the source camera frustum. Turn off to place it with this object's transform.")]
public bool LockToSourceCamera

Field Value

bool

Opacity

[Tooltip("Quad opacity in the scene view.")]
[Range(0, 1)]
public float Opacity

Field Value

float

SourceCamera

[Tooltip("Camera whose image is mirrored. Empty = Camera.main.")]
public Camera SourceCamera

Field Value

Camera

Properties

HasImage

public bool HasImage { get; }

Property Value

bool

Methods

GetWorldCorners(Vector3[])

Copies the preview plane's world corners into an array.

public void GetWorldCorners(Vector3[] dst)

Parameters

dst Vector3[]

Destination with room for at least four world-space positions.

Remarks

Corners run counterclockwise from bottom left. Locked previews use the source camera frustum; unlocked previews use the host transform. A null or undersized destination is left unchanged.