Change one material or emitter
On this page
0.86.4.0 / ACTIONS AND PROPERTIES
RUNTIME WALKTHROUGH
Imagine two panels using the same shader. The puzzle should light up just the left one. PCA can give the selected object its own material settings while the other panel keeps its original look.
Actual Runner frames, Linux Compatibility renderer. Left frame is before the edit. Right frame is after. Within each frame, compare both squares.
1
Find the uniform name and type#
Open the spatial shader used on the prop and find the uniform declaration. If it says uniform float gain, use shader.uniforms.gain as the property. The word gain is an example. Copy the name from your shader, including its capitalization.
2
Write one field#
Add Change Object Property, select the placed prop, and enter the full path. For a float enter 0.4. For a vec3 named xyz enter [0.4, 0.7, 0.9]. Run the event with both props in view. A wrong type is rejected and the previous value stays in place.
3
Thin out a particle effect#
On a 3D particle entity use particle.amountRatio and enter 0.4. That allows a fraction of the configured emission while the existing emitter continues. For a native 2D emitter use particle2D.amountRatio. Watch long-lived particles already in flight.
Choose what you want to preserve
Changing particle.amount or a preset can restart the affected effect layers. To thin smoke without restarting it, change the ratio. The parent shader.uniforms entry describes a dictionary. The live write names an individual declared uniform.
PCA 3D / Actions and properties
