Synced
ShaderGraphDocument.Read
Section titled “ShaderGraphDocument.Read”
- Reads a named node value; absent values use the declared default, corrupt values never do.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering.Shaders
Scope: Editor
Declaration
Section titled “Declaration”public static T InnoEditor.Rendering.Shaders.ShaderGraphDocument.Read<T>(InnoEngine.Graphs.GraphNodeRecord node, string key, T defaultValue, InnoEngine.Serialization.SerializationRegistry serialization, InnoEngine.Serialization.SerializationContext context)Type parameters
Section titled “Type parameters”Type parameter T: Expected native serializable type.
Parameters
Section titled “Parameters”Parameter node: Neutral node record.
Parameter key: Stable property key.
Parameter defaultValue: Value used only when the property is absent.
Parameter serialization: The owner converter registry.
Parameter context: The complete owner reference context.
Returns
Section titled “Returns”The decoded value or explicit absent-property default.