Vixen
dd8b0a81
csharp
public sealed class VfxGraphBuilder

What a VFX node contributes to the graph being built.

Read the guide page for this →

Remarks

Blocks, not expressions. A shader node emits a line of source; a VFX node adds an operation to one of three lists, or names the renderer. That is the difference between the two graphs, and it is the whole difference: everything else — the ports, the typing, the ordering, the diagnostics — is the same framework.

Parameters are numbers, not text. A VfxOperation holds two Vector4s, so a node reads its ports through Value rather than through the expression a shader node would interpolate. That is why the framework hands over both forms.

Fields and properties (8)

  • public List<VfxSpawner> Spawners

    The spawners, in the order the graph produced them.

  • public List<VfxOperation> Initializers

    The initializers.

  • public List<VfxOperation> Updaters

    The updaters.

  • public VfxRenderer? Renderer

    How the particles are drawn, when a node has said.

  • public int Capacity

    The most particles that may be alive at once.

  • public List<VfxCustomAttribute> Customs

    The custom attributes the graph declares.

  • public List<string> Problems

    What a node found wrong while contributing, for the compiler to report against the graph.

  • public string RibbonAttribute

    The attribute a ribbon output named, resolved to a slot once every node has contributed.

Methods (3)

  • public int Custom(string name, VfxAttributeType type)

    The slot a named custom attribute occupies, declaring it if this is the first mention.

  • public int SlotOf(string name)

    The slot a named custom attribute already occupies, without declaring one.

  • public static bool TypeOfLanes(int lanes, out VfxAttributeType type)

    What a lane count means as an attribute type.

Used by (34)

  • AngularVelocityNodeVixen.Editor.VfxGraph
  • AttractNodeVixen.Editor.VfxGraph
  • BillboardOutputNodeVixen.Editor.VfxGraph
  • BurstNodeVixen.Editor.VfxGraph
  • CollidePlaneNodeVixen.Editor.VfxGraph
  • CollideSphereNodeVixen.Editor.VfxGraph
  • ColourNodeVixen.Editor.VfxGraph
  • ColourOverLifeNodeVixen.Editor.VfxGraph
  • CustomOverLifeNodeVixen.Editor.VfxGraph
  • DragNodeVixen.Editor.VfxGraph
  • EffectNodeVixen.Editor.VfxGraph
  • GravityNodeVixen.Editor.VfxGraph
  • IntegrateNodeVixen.Editor.VfxGraph
  • LifetimeNodeVixen.Editor.VfxGraph
  • LightOutputNodeVixen.Editor.VfxGraph
  • MeshOutputNodeVixen.Editor.VfxGraph
  • PositionInBoxNodeVixen.Editor.VfxGraph
  • PositionInSphereNodeVixen.Editor.VfxGraph
  • PositionNodeVixen.Editor.VfxGraph
  • RandomCustomNodeVixen.Editor.VfxGraph
  • RandomVelocityNodeVixen.Editor.VfxGraph
  • RateNodeVixen.Editor.VfxGraph
  • RibbonOutputNodeVixen.Editor.VfxGraph
  • RotateNodeVixen.Editor.VfxGraph
  • RotationNodeVixen.Editor.VfxGraph
  • SetCustomNodeVixen.Editor.VfxGraph
  • SetVelocityNodeVixen.Editor.VfxGraph
  • SizeNodeVixen.Editor.VfxGraph
  • SizeOverLifeNodeVixen.Editor.VfxGraph
  • TurbulenceNodeVixen.Editor.VfxGraph
  • VelocityInConeNodeVixen.Editor.VfxGraph
  • VfxGraphCompilerVixen.Editor.VfxGraph
  • VfxNodeVixen.Editor.VfxGraph
  • VortexNodeVixen.Editor.VfxGraph