The Particles Template includes a number of particles that can be easily exported and imported into other templates. The template guide covers the parameters used in our shader driven particle system. We've created several variations using the same shader each time to demonstrate the various types of effects you can create.
Exporting & Importing Particles
The Particles Template includes a number of particles that you can use in your Lens experiance. To use one of the included particles in another template, you need to first export the particle. To do this, select the particle in the
Objects panel, right click and select
Export Object. Then, in the Lens project you want to import the particle to, right click in the
Objects panel and select
To demonstrate the functionality that you can achieve with scripting in conjunction with the particle material we've constructed a number of simple particles including Rain, Snow, Blizzard, Bokeh and Sparkles. Each simple particle has an
Intensity slider that allows you to easily increase or decrease the intensity of the effect.
Spawn Over Time
Some effects you may want to spawn over time in which there are 0 particles at the start and over time they begin to emit. This is done by using a couple of scripts we've provided.
You can attach the scripts
GlobalTime.js and bind them both to the Initialize event in the inspector panel. Place these script on the SceneObject that contains the MeshVisual referencing the particle material you'd like to control.
Next, enable the
External Time box for the material you'd like to control the time for. In this example we've done this for our smoke effect material.
The particles should start to spawn from 0 once you refresh the view in Lens Studio.
Creating and Modifying Particles
Refer to the Particles guide for additional information on using and creating particles.
Please refer to the guides below for additional information:
Still Looking for help?Visit Support