SpineSkeletonTests SetOrigin Method Delta Engine Documentation

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

public void SetOrigin()
Examples

[Test, CloseAfterFirstFrame]
public void SetOrigin()
{
    Assert.AreEqual(Origin, spineboy.Origin);
    spineboy.Origin = Vector2D.UnitX;
    Assert.AreEqual(Vector2D.UnitX, spineboy.Origin);
    Assert.AreEqual(Scale, spineboy.Scale);
}
[Test, CloseAfterFirstFrame]
public void SetOriginAndScale()
{
    Assert.AreEqual(OriginAndScale, spineboy.OriginAndScale);
    spineboy.OriginAndScale = Rectangle.HalfCentered;
    Assert.AreEqual(Rectangle.HalfCentered, spineboy.OriginAndScale);
}
See Also