VisualShaderNodeUniform

Inherits: VisualShaderNode < Resource < Reference < Object

Inherited By: VisualShaderNodeBooleanUniform, VisualShaderNodeColorUniform, VisualShaderNodeScalarUniform, VisualShaderNodeTextureUniform, VisualShaderNodeTransformUniform, VisualShaderNodeVec3Uniform

A base type for the uniforms within the visual shader graph.

Description

A uniform represents a variable in the shader which is set externally, i.e. from the ShaderMaterial. Uniforms are exposed as properties in the ShaderMaterial and can be assigned from the inspector or from a script.

Properties

Stringuniform_name“”

Property Descriptions

Default“”
Setterset_uniform_name(value)
Getterget_uniform_name()

Name of the uniform, by which it can be accessed through the ShaderMaterial properties.