Documentation for Substance 3D Integrations is now available on Experience League. After March 14th, HelpX pages will automatically redirect to the equivalent Experience League page.
Refer to the FAQ for more information about which documentation is affected.
- Substance 3D home
- Ecosystems and Plugins
- Home
- Game Engines
- Game Engines overview
- Unreal Engine
- Unreal Engine 5
- Unreal Engine 5 overview
- Unreal Engine 5 Release Notes
- Plugin Overview - UE5
- Plugin Settings - UE5
- Substance Input Image - UE5
- Material Instance Definition - UE5
- Material Template Usage - UE5
- Out-of-the-Box Material Templates
- Physical size - UE5
- Tiling Substance - UE5
- Substance 3D Plugin Default Templates
- Substance 3D Assets Library Usage - UE5
- Blueprints - UE5
- Unreal Engine 5 Scripting
- Installing to Source Builds
- Unreal Engine 5 overview
- Unreal Engine 4
- Unreal Engine 4 overview
- Unreal Engine 4 plugin release notes
- Unreal plugin 4.27.0.1
- Unreal plugin 4.26.0.21
- Unreal plugin 4.26.0.2
- Unreal plugin 4.26.0.1
- Unreal plugin 4.25.0.5
- Unreal plugin 4.25.0.4
- Unreal plugin 4.25.0.3
- Unreal plugin 4.24.0.3
- Unreal plugin 4.23.0.2
- Unreal plugin 4.23.0.1
- Unreal plugin 4.22.0.33
- Unreal plugin 4.22.0.32
- Unreal plugin 4.21.0.31
- Plugin Overview - UE4
- Plugin Settings - UE4
- Substance Input Image - UE4
- Material Instance Definition - UE4
- Tiling Substance - UE4
- Working with Bump Offset (Parallax) - UE4
- Working with Displacement - UE4
- Source in UE4
- Live Link in UE4
- Blueprints - UE4
- Unreal Engine 4 Scripting
- Unreal Engine 4 overview
- Unreal Engine 5
- Unity
- Unity overview
- Unity Release Notes
- Downloading Substance 3D Plugin in Unity
- Unity Plugin Overview
- Unity Preferences
- Optimization Guidelines
- Upgrading Projects/Known Issues
- Managing Substance Graphs
- Changing parameters
- Generated Textures (Packing)
- Rendering Color Space
- Using Image Inputs
- Publishing for Mobile
- Substance 3D for Unity Scripting
- API Overview
- Scripting API
- C# Example Script
- Substance 3D Assets Library Usage
- Removing Substance Plugin
- Substance 3D in Unity Tutorials
- Physical Size in Unity
- Sharing sbsar Files Between Projects
- Unity overview
- Lumberyard
- Roblox
- 3D Applications
- 3D Applications overview
- Maya
- 3ds Max
- MODO
- MODO overview
- Modo Plugin Release Notes
- Substance in MODO Overview
- Modo Installation
- Parameters
- Custom Materials
- Working with Normals
- Working with Emissive
- Bump and Displacement
- Working with References
- Animating Substances
- Copy/Duplicate Substance
- Environment and Rendering Setup
- Modo Switch Engine
- Tiling Modo textures
- MODO overview
- Cinema 4D
- Houdini
- Blender
- Blender overview
- Release Notes
- Substance in Blender Overview
- Downloading and Installing the Plugin
- Preferences
- The Substance 3D Panel
- Shortcuts and Navigation
- Workflows
- Physical size in Blender
- Substance 3D Assets Library
- Troubleshooting
- Uninstalling the Add-on
- Substance 3D Add-on for Blender Tutorials
- Blender overview
- Creative Cloud Applications
- Renderers
- Partnerships
SubstanceRuntimeGraph Class
Adobe.Substance.Runtime.SubstanceRuntimeGraph Class Reference
Class that provides runtime functionality to modify inputs at and render substance graphs, allowing Substance←GraphSO to generate its assets at runtime.
Inheritance diagram for Adobe.Substance.Runtime.SubstanceRuntimeGraph:
Public Member Functions
• void AttachGraph (SubstanceGraphSO graph)
Attaches a new graph object to this runtime handler.
• void SetInputFloat (string inputName, float value)
Update Substance Float Input
• float GetInputFloat (string inputName)
Get Substance Float Input
• void SetInputVector2 (string inputName, Vector2 value)
Update Substance Vector2 Input
• Vector2 GetInputVector2 (string inputName)
Get Substance Vector2 Input
• void SetInputVector3 (string inputName, Vector3 value)
Update Substance Vector3 Input
• Vector3 GetInputVector3 (string inputName)
Get Substance Vector3 Input.
• void SetInputVector4 (string inputName, Vector4 value)
Update Substance Vector4 Input
• Vector4 GetInputVector4 (string inputName)
Get Substance Vector4 Input
• void SetInputColor (string inputName, Color value)
Update Substance Color Input
• Color GetInputColor (string inputName)
Get Substance Color
• void SetInputBool (string inputName, bool value)
Update Substance Boolean Input
• bool GetInputBool (string inputName)
Get Substance Boolean Input.
• void SetInputInt (string inputName, int value)
Update Substance Int Input
• int GetInputInt (string inputName)
Get Substance Int Input
• void SetInputVector2Int (string inputName, Vector2Int value)
Update Substance Vector2Int Input.
• Vector2Int GetInputVector2Int (string inputName)
Get array of 2 int.
• void SetInputVector3Int (string inputName, Vector3Int value)
Update Substance Vector3Int Input.
• Vector3Int GetInputVector3Int (string inputName)
Get array of 3 int (Vector3Int’s x, y & z values)
• void SetInputVector4Int (string inputName, int x, int y, int z, int w)
Update Substance Vector4Int Input
• int[ ] GetInputVector4Int (string inputName)
Get array of 4 int (Vector4Int’s x, y, z & w values)
• void SetInputString (string inputName, string value)
Update Substance string Input.
• string GetInputString (string inputName)
Get Substance string input.
• SubstanceInputDescription GetInputDescription (string inputName)
Returns the complete input description for the target input name.
• void SetInputTexture (string inputName, Texture2D value)
Update Substance Texture2D Input.
• Vector2Int GetTexturesResolution ()
Returns instance texture output resoltion.
• void SetTexturesResolution (Vector2Int size)
Sets instance texture output resolution.
• bool HasInput (string inputName)
Returns true if this substance instance has an input with a given name.
• List< Texture2D > GetGeneratedTextures ()
Returns a list with all output textures for the substance instance.
• Texture2D GetOutputTexture (string outputName)
Returns the output texture for a given output name.
• void Render ()
Renders the substance instance synchronously.
• Task RenderAsync ()
Renders the substance instance asynchronously.
• void LoadPreset (string presetXML)
Uses a preset XML to set graph input parameters.
• string CreatePresetFromCurrentState ()
Saves the current graph state into a preset XML.
Public Attributes
• SubstanceGraphSO GraphSO
Target substance instance.
Protected Member Functions
• void Awake ()
On awake SubstanceRuntime will be used to create a instance for the attached SubstanceGraphSO in the substance
SDK.
• void Update ()
Check the render ConcurrentQueue for render results.
• void OnDestroy ()
Disposes the substance SDK handler.
Properties
• Material DefaulMaterial [get]
Main material generated by the substance instance.