Voxel Plugin
2.0p-304
2.0p-304
  • Home
    • Roadmap
    • Release Notes
  • Getting Started
    • Installing Voxel Plugin
    • Using MetaGraphs
      • Using the MetaGraph Preview
      • Finding the Right Nodes
      • Variables and Parameters
    • Step-by-Step Guides
      • Getting Started with Smooth Terrains
      • Getting Started with Blocky Terrains
      • Getting Started with Foliage
      • Getting Started with Materials
  • Landmass & MetaGraphs
    • Design Philosophy
      • What are Landmass & MetaGraphs
      • A Technical Exploration of MetaGraphs
    • Deep Dives into MetaGraphs
      • Passing Data to Materials
      • Working with Curves
      • Working with Landmass
        • Using Landmass Height Brushes
        • Scale and Resolution for Landmass Brushes
        • Complex Usecases for Landmass Brushes
      • Choosing the right Chunk Spawner
      • Using Height Canvases
      • MetaGraph Macros
      • Floats and Density
      • Buffers and Uniforms
    • Optimizing MetaGraphs
      • Utilities for Performant Graphs
      • Memory Usage & Render Performance
      • Profiling Generation Times
    • Extending MetaGraphs through C++
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started
  2. Using MetaGraphs

Variables and Parameters

Variables and parameters can be created in two ways. The first is to click the plus button in the appropriate section on the bottom-left side of the graph editor. The second is to drag out from a pin and select Promote to Local Variable or Promote to Parameter.

Promote to Local Variable will create a local variable - this will also show up on the left side of the graph editor. The details panel right above the variable will let you configure the variable's default value. You can get the value of a local variable as many times as you want. You can also set a local variable once from within your graph, overriding the default value.

If a value needs to be editable per Voxel Actor in your world, rather than from within the graph, use a parameter instead; these function like variables, but they will show up in your Voxel Actor's details panel rather than being set within the graph.

Parameters can only be uniforms, but local variables can be uniform or buffer depending on their usage. More information on when to use which can be found on the Buffers and Uniforms page.

PreviousFinding the Right NodesNextStep-by-Step Guides

Last updated 2 years ago

Was this helpful?