Home › Page › UghSpriteResolutionDefinition


Ugh Scripting Reference > UghSpriteResolutionDefinition

UghSpriteResolutionDefinition is a helper class used exclusively with UghSpriteDefinition.  UghSpriteResolutionDefinition is used to define the relationship between an UghSpritePrototype and a screen resolution.  UghSpriteDefinition uses this information to choose an appropriate sprite at runtime.

UghSpriteResolutionDefinition makes use of the ReferenceLink class.  Please read the documentation on ReferenceLink to understand how this impacts memory usage.

name type description
minSize Vector2 The minimum screen resolution this UghSpritePrototype will be selected.
prototype ReferenceLink A ReferenceLink to the UghSpritePrototype.