Class SynthesizedBounds2D
Creates the data for a 2D bounds trait When added to a synthesized object, adds extents based on the object's scale to its representation in the database
Inheritance
SynthesizedBounds2D
Inherited Members
Namespace: Unity.MARS.Data.Synthetic
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.mars@1.5/manual/ReferenceGuideSyntheticData.html#synthesized-bounds-2d-synthesizedbounds2d")]
[MovedFrom("Unity.MARS.Data")]
public class SynthesizedBounds2D : SynthesizedTrait<Vector2>, ISimulatable, ISynthesizedData, IProvidesTraits<Vector2>, IProvidesTraits, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IFunctionalitySubscriber
Properties
baseBounds
Declaration
public Vector2 baseBounds { get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
provider
Declaration
public IProvidesCameraOffset provider { get; set; }
Property Value
Type | Description |
---|---|
IProvidesCameraOffset |
Implements
TraitName
Declaration
public override string TraitName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
UpdateWithTransform
Declaration
public override bool UpdateWithTransform { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Methods
GetTraitData()
Declaration
public override Vector2 GetTraitData()
Returns
Type | Description |
---|---|
Vector2 |
Overrides
Unity.MARS.Data.Synthetic.SynthesizedTrait<UnityEngine.Vector2>.GetTraitData()