Sprite
</> ursina.prefabs.sprite
Inherits Entity
Class Variables
.ppu
default: 100
Initialization
Sprite(texture=None, ppu: int=None)
Attributes
.model
default: 'quad'
.ppu
default: ppu if ppu else Sprite.ppu
pixels per unit
Methods
update_scale()
get called automatically on __init__, but if you change the texture or ppu, you can call this to update the scale.