TextureWidth
Last updated
Was this helpful?
TextureWidth controls the width side of the source rectangle of a SpriteRuntime's Texture. This value is measured in pixels. This value is only applied if a SpriteRuntime's TextureAddress is set to Custom or DimensionsBased.
The following code assigns a SpriteRuntime's TextureWidth:
// Initialize
// Assuming a Sprite's TextureAddress is set to Custom
sprite.TextureWidth = 32;Last updated
Was this helpful?
Was this helpful?

