SpineSkeleton OriginAndScale Property Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Spine
Assembly: DeltaEngine.Rendering2D.Spine (in DeltaEngine.Rendering2D.Spine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public Rectangle OriginAndScale { get; set; }

Property Value

Type: Rectangle
Remarks

Tests: DeltaEngine.Rendering2D.Spine.Tests.SpineSkeletonTests
Examples

2 unit tests call DeltaEngine.Rendering2D.Spine.SpineSkeleton.OriginAndScale
[Test, CloseAfterFirstFrame]
public void SetOriginAndScale()
{
    Assert.AreEqual(OriginAndScale, spineboy.OriginAndScale);
    spineboy.OriginAndScale = Rectangle.HalfCentered;
    Assert.AreEqual(Rectangle.HalfCentered, spineboy.OriginAndScale);
}
[Test, CloseAfterFirstFrame]
public void SetLastOriginAndScale()
{
    Assert.AreEqual(new Rectangle(Origin, Size.One), spineboy.LastOriginAndScale);
    spineboy.LastOriginAndScale = Rectangle.HalfCentered;
    Assert.AreEqual(Rectangle.HalfCentered, spineboy.LastOriginAndScale);
}
See Also