Class TextureMapperRawImage
Display camera image into uGUI RawImage object
Automatically track the rotation direction of the terminal and rotate the image
Inheritance
Namespace: TofAr.V0.Tof
Assembly: TofArTofAssembly.dll
Syntax
public class TextureMapperRawImage : MonoBehaviour
Fields
AutoRotation
true: Rotate display according to rotation of device
false: Do not automatically rotate display
Default: true
Declaration
public bool AutoRotation
Field Value
Type |
---|
System.Boolean |
ConfidenceBoost
Confidence boost
Declaration
[Obsolete]
[HideInInspector]
public float ConfidenceBoost
Field Value
Type |
---|
System.Single |
confidenceViewMaterial
Material displaying Texture of Confidence
Declaration
public Material confidenceViewMaterial
Field Value
Type |
---|
UnityEngine.Material |
confidenceViewMaterialDepthPrivate
Material displaying Texture of DepthPrivate mode Confidence of the Xperia1
Declaration
public Material confidenceViewMaterialDepthPrivate
Field Value
Type |
---|
UnityEngine.Material |
depthViewMaterial
Material displaying Texture of Depth
Declaration
public Material depthViewMaterial
Field Value
Type |
---|
UnityEngine.Material |
Maximize
true: Maximize RawImage within the bounds of the parent object
false: Do not maximize RawImage within the bounds of the parent object
Default: true
Declaration
public bool Maximize
Field Value
Type |
---|
System.Boolean |
parentRectTransform
Parent rect transform
Declaration
protected RectTransform parentRectTransform
Field Value
Type |
---|
UnityEngine.RectTransform |
rectTransform
Rect transform
Declaration
protected RectTransform rectTransform
Field Value
Type |
---|
UnityEngine.RectTransform |
type
Display type
Declaration
public TextureMapperRawImage.Type type
Field Value
Type |
---|
TextureMapperRawImage.Type |
Properties
AspectRatio
Aspect ratio
Default: 1.333
Declaration
public float AspectRatio { get; }
Property Value
Type |
---|
System.Single |
Methods
Awake()
Called when instance has been loaded
Declaration
protected virtual void Awake()
OnDisable()
Called when object is disabled
Declaration
protected virtual void OnDisable()
OnEnable()
Called when object is enabled
Declaration
protected virtual void OnEnable()
OnValidate()
Called when value has been changed
Declaration
protected virtual void OnValidate()
UpdateImageSize()
Update image size
Declaration
protected virtual void UpdateImageSize()
UpdateRotation()
Update rotation
Declaration
protected virtual void UpdateRotation()