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
Syntax
public class SynthesizedBounds2D : SynthesizedTrait<Vector2>, ISimulatable, IProvidesTraits<Vector2>, IProvidesTraits, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IFunctionalitySubscriber
Properties
baseBounds
Declaration
public Vector2 baseBounds { get; set; }
Property Value
provider
Declaration
public IProvidesCameraOffset provider { get; set; }
Property Value
Implements
TraitName
Declaration
public override string TraitName { get; }
Property Value
Overrides
Declaration
public override bool UpdateWithTransform { get; }
Property Value
Overrides
Methods
GetTraitData()
Declaration
public override Vector2 GetTraitData()
Returns
Overrides
Unity.MARS.Data.SynthesizedTrait<Vector2>.GetTraitData()
Extension Methods