Method | Description | |
---|---|---|
GetRegion ( this attachment ) : AtlasRegion |
Tries to get the region (image) of a renderable attachment. If the attachment is not renderable, it returns null.
|
|
SetPositionOffset ( this regionAttachment, |
Sets the position offset. Call regionAttachment.UpdateOffset to apply the change.
|
|
SetPositionOffset ( this regionAttachment, float x, float y ) : void |
Sets the position offset. Call regionAttachment.UpdateOffset to apply the change.
|
|
SetRegion ( this attachment, AtlasRegion region, bool updateOffset = true ) : void |
Tries to set the region (image) of a renderable attachment. If the attachment is not renderable, nothing is applied.
|
|
SetRotation ( this regionAttachment, float rotation ) : void |
Sets the rotation. Call regionAttachment.UpdateOffset to apply the change.
|
|
SetScale ( this regionAttachment, |
Sets the scale. Call regionAttachment.UpdateOffset to apply the change.
|
|
SetScale ( this regionAttachment, float x, float y ) : void |
Sets the scale. Call regionAttachment.UpdateOffset to apply the change.
|
|
ToRegionAttachment ( this sprite, AtlasPage page ) : RegionAttachment |
Creates a RegionAttachment based on a sprite. This method creates a real, usable AtlasRegion. That AtlasRegion uses the AtlasPage provided.///
|
|
ToRegionAttachment ( this sprite, |
Creates a RegionAttachment based on a sprite. This method creates a real, usable AtlasRegion. That AtlasRegion uses a new AtlasPage with the Material provided.///
|
|
ToRegionAttachment ( this region, string attachmentName, float scale = 0.01f ) : RegionAttachment |
Creates a new RegionAttachment from a given AtlasRegion.
|
|
ToRegionAttachmentPMAClone ( this sprite, |
Creates a Spine.AtlasRegion that uses a premultiplied alpha duplicate texture of the Sprite's texture data. Returns a RegionAttachment that uses it. Use this if you plan to use a premultiply alpha shader such as "Spine/Skeleton"
|
public static GetRegion ( this attachment ) : AtlasRegion | ||
attachment | this | |
return | AtlasRegion |
public static SetPositionOffset ( this regionAttachment, |
||
regionAttachment | this | |
offset | ||
return | void |
public static SetPositionOffset ( this regionAttachment, float x, float y ) : void | ||
regionAttachment | this | |
x | float | |
y | float | |
return | void |
public static SetRegion ( this attachment, AtlasRegion region, bool updateOffset = true ) : void | ||
attachment | this | |
region | AtlasRegion | |
updateOffset | bool | |
return | void |
public static SetRotation ( this regionAttachment, float rotation ) : void | ||
regionAttachment | this | |
rotation | float | |
return | void |
public static SetScale ( this regionAttachment, |
||
regionAttachment | this | |
scale | ||
return | void |
public static SetScale ( this regionAttachment, float x, float y ) : void | ||
regionAttachment | this | |
x | float | |
y | float | |
return | void |
public static ToRegionAttachment ( this sprite, AtlasPage page ) : RegionAttachment | ||
sprite | this | |
page | AtlasPage | |
return | RegionAttachment |
public static ToRegionAttachment ( this sprite, |
||
sprite | this | |
material | ||
return | RegionAttachment |
public static ToRegionAttachment ( this region, string attachmentName, float scale = 0.01f ) : RegionAttachment | ||
region | this | |
attachmentName | string | |
scale | float | |
return | RegionAttachment |
public static ToRegionAttachmentPMAClone ( this sprite, |
||
sprite | this | |
shader | ||
return | RegionAttachment |