Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (22 loc) · 1.39 KB

substanceparameter.md

File metadata and controls

35 lines (22 loc) · 1.39 KB
layout title description group
docs
SubstanceParameter
Documentation for SubstanceParameter.
code

SubstanceParameter

Makes selecting Substance input parameters much easier by creating a dropdown for a referenced SubstanceGraph's inputs. Parameters can be grouped to produce nested dropdown options.

Inspector

Code

SubstanceParameter is a serialized class that allows for easy selection of a SubstanceGraph's input parameters. To use it, add a public or serialized variable of type SubstanceParameter to your class.

Declaration

This will allow you to select from a target SubstanceGraph's input parameters. To actually access the parameter name, use the .parameter variable of the SubstanceParameter.

Parameter access

Inspector

Once you have declared a SubstanceParameter variable, you will see the following field:

Inspector (no reference)

Drag a SubstanceGraph into the field to select from its parameters.

Inspector (reference)

You can right click on SubstanceParameter field labels to show/hide the graph being referenced. This is mostly so developers can easily see which SubstanceGraph assets are being referenced per field.

Inspector (show asset)