Difference between revisions of "B2.ParticleSystem:setTexture"

From GiderosMobile
Line 6: Line 6:
 
  b2.ParticleSystem:setTexture(texture,size)
 
  b2.ParticleSystem:setTexture(texture,size)
 
</source>
 
</source>
'''texture''': (Texture) texture to use for particles ''''''<br/>
+
=== Parameters ===
 +
'''texture''': (Texture) texture to use for particles <br/>
 
'''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/>
 
'''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:44, 23 August 2018

Available since: Gideros 2015.06.30

Description

Sets texture to particles in this system

 b2.ParticleSystem:setTexture(texture,size)

Parameters

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