Internal function for construction.
Optionaluuid: UUIDOptionalisInternalConstructor: booleanYou should never override the constructor for resources. Always rely on onCreate or onInitialize to initialize your resource.
Protected_isReadonlycommentsAll GraphComment objects to display in the editor for this Graph
The status of the validation, undefined until validate was called.
ReadonlynodesAll GraphNode objects registerded with this graph.
ReadonlyuserA Map suitable for storing custom user-defined data.
The status of the validation since the last call to validate.
ReadonlyvariablesAll GraphVariable objects registered with this graph.
ReadonlyviewportDetermines the panning position of the user has last moved the graph canvas to.
Determines the zoom scale of the user has the graph canvas at.
Gets the root node for code generation.
Returns a resource handle.
Determines if the resource is destroyed.
Gets the code generation language of the graph.
Returns the meta data of this resource.
Name of the resource. Use primarily for easier identification and not important to the engine itself.
The parameters of the material graph.
VirtualGets the default type of a newly constructed variable getter.
VirtualGets the default type of a newly constructed variable setter.
Adds the GraphComment to the scene.
Adds a new comment to the graph.
The newly created commented object.
Adds the specified GraphConnection.
The connection will be registered with both the input and output GraphPin. Before the connection is registered onFilterAddConnection will be invoked to allow the graph to dynamically replace the connection.
Adds the specified CodeGeneratingGraphNode.
Adds the specified GraphVariable.
The variable to add.
true if the variable was added, false on error.
ProtectedenableGets the variable with the specified name.
VirtualGenerates the code for the graph.
The code generation mode.
The generated code.
ProtectedgenerateGenerates the pipeline state code for the material graph.
The code generation context.
The preceeding code generation result.
The generated pipeline state code.
ProtectedgenerateGenerates the shader include code for the material graph.
The code generation context.
The preceeding code generation result.
The generated shader include code
ProtectedgenerateGenerates the shader state code for the material graph.
The code generation context.
The preceeding code generation result.
The generated shader state code.
Gets the GraphComment with the specified title or UUID.
ProtectedgetGets the raster state for the specified comparison function.
The comparison function.
The raster state for the comparison
ProtectedgetGets the raster state for the specified culling mode.
The culling mode.
The raster state for the culling mode.
Determines if the specified node is connected to the `executionRoot.
Gets all nodes of the specified type.
Method that must be called whenever the Graph is dirtied.
Optionalflags: EnumValue<GraphNodeDirtyFlags, number>VirtualInvoked when the code generation begins.
ProtectedonRemoves the GraphComment to the scene.
Removes the specified GraphConnection.
Removes all persisted GraphVariable data from variableValues that have been
removed or are no longer public.
The persistent variable values that will be modified.
Removes the specified GraphVariable.
Renames the specified variable.
Changes the default value of a variable.
OptionalforceUpdate: booleanReadonlyonAn event called when a change on the graph was made.
ReadonlyonAn event called when a change on the graph was made.
ReadonlyonAn event called whenever a new GraphNode is added.
ReadonlyonAn event called whenever a GraphNode is removed.
ReadonlyonAn event called whenever a new connection was made.
ReadonlyonAn event called whenever a connection is removed.
ReadonlyonAn event called whenever a new GraphVariable is added.
ReadonlyonAn event called whenever a new GraphVariable was removed.
ReadonlyonAn event called whenever a new GraphVariable was changed, e.g. name, type or meta-data.
ReadonlyonAn event called whenever a new GraphVariable was default value changed.
ReadonlyonAn event called whenever a new GraphComment is added.
ReadonlyonAn event called whenever a new GraphComment was removed.
ReadonlyonAn event called whenever validation resulted in errors.
ReadonlyonAn event called whenever a connection was visited by the execution.
ReadonlyonAn event called whenever a root node was visited by the execution.
The CarbonMaterialGraph implements a CarbonShaderGraph that can be used to create material shader graphs. The CarbonMaterialGraph can be edited using the CarbonMaterialKeyWindow.
Note
The CarbonMaterialGraph should not be instanced or edited manually, instead, it is owned by a CarbonMaterial and can be accessed using the CarbonMaterial.