Difference between revisions of "B2.ParticleSystem:setTexture"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2015.06.30<br/> === Description === Sets texture to particles in this system <source lang="lua"> = b2.ParticleSystem:setTexture(textur...") |
|||
Line 4: | Line 4: | ||
Sets texture to particles in this system | Sets texture to particles in this system | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | b2.ParticleSystem:setTexture(texture,size) | |
</source> | </source> | ||
− | '''texture | + | '''texture''': (Texture) texture to use for particles ''''''<br/> |
− | '''size | + | '''size''': (Number) Size of particle. Default the same size as physics particle size. Use a larger size to let particles visuals overlap each other. '''optional'''<br/> |
Revision as of 10:17, 23 August 2018
Available since: Gideros 2015.06.30
Description
Sets texture to particles in this system
b2.ParticleSystem:setTexture(texture,size)
'texture: (Texture) texture to use for particles '
size: (Number) Size of particle. Default the same size as physics particle size. Use a larger size to let particles visuals overlap each other. optional