Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

VisualShaderNodeParticleMeshEmitter

繼承: VisualShaderNodeParticleEmitter < VisualShaderNode < Resource < RefCounted < Object

讓粒子從由 Mesh 定義的形狀中發射的視覺化著色器節點。

說明

讓粒子由分配的 mesh 的形狀中發射的 VisualShaderNodeParticleEmitter。它將從網格的表面發射,可以是全部表面,也可以是某個指定的表面。

屬性

Mesh

mesh

int

surface_index

0

bool

use_all_surfaces

true


屬性說明

Mesh mesh 🔗

  • void set_mesh(value: Mesh)

  • Mesh get_mesh()

定義發射形狀的 Mesh


int surface_index = 0 🔗

  • void set_surface_index(value: int)

  • int get_surface_index()

發射粒子的表面的索引。use_all_surfaces 必須為 false 才能生效。


bool use_all_surfaces = true 🔗

  • void set_use_all_surfaces(value: bool)

  • bool is_use_all_surfaces()

如果為 true,則粒子會從該網格的所有表面上發射。