Class MapSceneViewPreview
[ExecuteAlways]
public sealed class MapSceneViewPreview : MonoBehaviour
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourMapSceneViewPreview
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
FlipY
[Tooltip("Flip the mirrored image vertically. On by default, because most graphics systems deliver camera output upside down.")]
public bool FlipY
Field Value
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
Opacity
[Tooltip("Quad opacity in the scene view.")]
[Range(0, 1)]
public float Opacity
Field Value
SourceCamera
[Tooltip("Camera whose image is mirrored. Empty = Camera.main.")]
public Camera SourceCamera
Field Value
- Camera
Properties
HasImage
public bool HasImage { get; }
Property Value
Methods
GetWorldCorners(Vector3[])
Copies the preview plane's world corners into an array.
public void GetWorldCorners(Vector3[] dst)
Parameters
dstVector3[]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.