Struct AnchorSettings
A struct that contains the anchor settings of a virtual camera.
Namespace: Unity.LiveCapture .VirtualCamera
Assembly: Unity.LiveCapture.VirtualCamera.dll
Syntax
[Serializable]
public struct AnchorSettings
Fields
Damping
The settings used to configure the smoothing applied to the anchor's motion.
Declaration
[Tooltip("The settings used to configure the smoothing applied to the anchor's motion.")]
public Damping Damping
Field Value
Type | Description |
---|---|
Damping |
Default
The default AnchorSettings.
Declaration
public static readonly AnchorSettings Default
Field Value
Type | Description |
---|---|
Anchor |
PositionLock
The position axes to follow when anchored.
Declaration
[Tooltip("The position axes to follow when anchored.")]
[EnumFlagButtonGroup(60)]
public Axis PositionLock
Field Value
Type | Description |
---|---|
Axis |
PositionOffset
Offset local to the target's anchor Transform.
Declaration
[Tooltip("Offset local to the target's anchor Transform.")]
public Vector3 PositionOffset
Field Value
Type | Description |
---|---|
Vector3 |
RotationLock
The rotation axes to follow when anchored.
Declaration
[Tooltip("The rotation axes to follow when anchored.")]
[EnumFlagButtonGroup(60)]
public Axis RotationLock
Field Value
Type | Description |
---|---|
Axis |
Methods
Equals(object)
Determines whether the specified object is equal to the current AnchorSettings.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current AnchorSettings. |
Returns
Type | Description |
---|---|
bool | True if the specified object is equal to the current AnchorSettings; otherwise, false. |
Overrides
Equals(AnchorSettings)
Determines whether the Anchor
Declaration
public bool Equals(AnchorSettings other)
Parameters
Type | Name | Description |
---|---|---|
Anchor |
other | The other Anchor |
Returns
Type | Description |
---|---|
bool | True if the specified object is equal to the current object; otherwise, false. |
GetHashCode()
Gets the hash code for the AnchorSettings.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash value generated for these AnchorSettings. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |
Overrides
Operators
operator ==(AnchorSettings, AnchorSettings)
Determines whether the two specified AnchorSettings are equal.
Declaration
public static bool operator ==(AnchorSettings a, AnchorSettings b)
Parameters
Type | Name | Description |
---|---|---|
Anchor |
a | The first AnchorSettings. |
Anchor |
b | The second AnchorSettings. |
Returns
Type | Description |
---|---|
bool | True if the specified AnchorSettings are equal; otherwise, false. |
operator !=(AnchorSettings, AnchorSettings)
Determines whether the two specified AnchorSettings are different.
Declaration
public static bool operator !=(AnchorSettings a, AnchorSettings b)
Parameters
Type | Name | Description |
---|---|---|
Anchor |
a | The first AnchorSettings. |
Anchor |
b | The second AnchorSettings. |
Returns
Type | Description |
---|---|
bool | True if the specified AnchorSettings are different; otherwise, false. |