Skip to content

queryFire

Description: Query all fire special effects that meet the conditions in the scene

Query fire:

const view = await System.UI.findControl('3DViewer1')// Obtain a 3D viewer control named "3DViewer1" in the page
const scene = await view.getScene();
const mash = await scene.queryFire('fire')//Query special effects with names containing fire
console.log(mash)//Output all queried results

Example:

Write the above code on the button, click the button, and you can query the fire special effects in the scene whose name includes fire

1

The queried model can use all its methods and properties:

alt text