Class ConstantViewSize
ConstantViewSize solver scales to maintain a constant size relative to the view (currently tied to the Camera)
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities.Solvers
Assembly: cs.temp.dll.dll
Syntax
public class ConstantViewSize : Solver, MonoBehaviour
Properties
CurrentDistancePercent
0 to 1 between MinDistance and MaxDistance. If current is less than max, object is potentially on a surface [or some other condition like interpolating] (since it may still be on surface, but scale percent may be clamped at max). This value is subject to inaccuracies due to smoothing/interpolation/momentum.
Declaration
public float CurrentDistancePercent { get; }
Property Value
Type | Description |
---|---|
Single |
CurrentDistancePercent
0 to 1 between MinDistance and MaxDistance. If current is less than max, object is potentially on a surface [or some other condition like interpolating] (since it may still be on surface, but scale percent may be clamped at max). This value is subject to inaccuracies due to smoothing/interpolation/momentum.
Declaration
public float CurrentDistancePercent { get; }
Property Value
Type | Description |
---|---|
Single |
CurrentScalePercent
0 to 1 between MinScale and MaxScale. If current is less than max, then scaling is being applied. This value is subject to inaccuracies due to smoothing/interpolation/momentum.
Declaration
public float CurrentScalePercent { get; }
Property Value
Type | Description |
---|---|
Single |
CurrentScalePercent
0 to 1 between MinScale and MaxScale. If current is less than max, then scaling is being applied. This value is subject to inaccuracies due to smoothing/interpolation/momentum.
Declaration
public float CurrentScalePercent { get; }
Property Value
Type | Description |
---|---|
Single |
FovScale
Returns the scale to be applied based on the FOV. This scale will be multiplied by distance as part of the final scale calculation, so this is the ratio of vertical fov to distance.
Declaration
public float FovScale { get; }
Property Value
Type | Description |
---|---|
Single |
FovScale
Returns the scale to be applied based on the FOV. This scale will be multiplied by distance as part of the final scale calculation, so this is the ratio of vertical fov to distance.
Declaration
public float FovScale { get; }
Property Value
Type | Description |
---|---|
Single |
ManualObjectSize
Overrides auto size calculation with provided manual size. If 0, solver calculates size
Declaration
public float ManualObjectSize { get; set; }
Property Value
Type | Description |
---|---|
Single |
ManualObjectSize
Overrides auto size calculation with provided manual size. If 0, solver calculates size
Declaration
public float ManualObjectSize { get; set; }
Property Value
Type | Description |
---|---|
Single |
MaxDistance
If the object is farther than MaxDistance, the distance used is clamped here
Declaration
public float MaxDistance { get; set; }
Property Value
Type | Description |
---|---|
Single |
MaxDistance
If the object is farther than MaxDistance, the distance used is clamped here
Declaration
public float MaxDistance { get; set; }
Property Value
Type | Description |
---|---|
Single |
MaxScale
Maximum scale value possible (world space scale)
Declaration
public float MaxScale { get; set; }
Property Value
Type | Description |
---|---|
Single |
MaxScale
Maximum scale value possible (world space scale)
Declaration
public float MaxScale { get; set; }
Property Value
Type | Description |
---|---|
Single |
MinDistance
If the object is closer than MinDistance, the distance used is clamped here
Declaration
public float MinDistance { get; set; }
Property Value
Type | Description |
---|---|
Single |
MinDistance
If the object is closer than MinDistance, the distance used is clamped here
Declaration
public float MinDistance { get; set; }
Property Value
Type | Description |
---|---|
Single |
MinScale
Minimum scale value possible (world space scale)
Declaration
public float MinScale { get; set; }
Property Value
Type | Description |
---|---|
Single |
MinScale
Minimum scale value possible (world space scale)
Declaration
public float MinScale { get; set; }
Property Value
Type | Description |
---|---|
Single |
ScaleBuffer
Used for dead zone for scaling
Declaration
public float ScaleBuffer { get; set; }
Property Value
Type | Description |
---|---|
Single |
ScaleBuffer
Used for dead zone for scaling
Declaration
public float ScaleBuffer { get; set; }
Property Value
Type | Description |
---|---|
Single |
ScaleState
Declaration
public ScaleState ScaleState { get; }
Property Value
Type | Description |
---|---|
ScaleState |
ScaleState
Declaration
public ScaleState ScaleState { get; }
Property Value
Type | Description |
---|---|
ScaleState |
TargetViewPercentV
The object take up this percent vertically in our view (not technically a percent use 0.5 for 50%)
Declaration
public float TargetViewPercentV { get; set; }
Property Value
Type | Description |
---|---|
Single |
TargetViewPercentV
The object take up this percent vertically in our view (not technically a percent use 0.5 for 50%)
Declaration
public float TargetViewPercentV { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
RecalculateBounds()
Attempts to calculate the size of the bounds which contains all child renderers for attached GameObject. This information is used in the core solver calculations
Declaration
public void RecalculateBounds()
RecalculateBounds()
Attempts to calculate the size of the bounds which contains all child renderers for attached GameObject. This information is used in the core solver calculations
Declaration
public void RecalculateBounds()
SolverUpdate()
Declaration
public override void SolverUpdate()
Overrides
SolverUpdate()
Declaration
public override void SolverUpdate()
Overrides
Start()
Declaration
protected override void Start()
Overrides
Start()
Declaration
protected override void Start()