Class MaterialFunction
Material function graph asset that contains reusable part of the material graph.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public class MaterialFunction : BinaryAsset
Constructors
MaterialFunction()
Methods
GetSignature(out String[], out String[])
Gets the function signature for Visject Surface editor.
Declaration
[Unmanaged]
public void GetSignature(out string[] types, out string[] names)
Parameters
System.String[]
types
|
System.String[]
names
|
LoadSurface()
Tries to load surface graph from the asset.
Declaration
[Unmanaged]
public byte[] LoadSurface()
Returns
System.Byte[]
The output surface data, or empty if failed to load. |
SaveSurface(Byte[])
Updates the material graph surface (save new one, discards cached data, reloads asset).
Declaration
[Unmanaged]
public bool SaveSurface(byte[] data)
Parameters
System.Byte[]
data
The surface graph data. |
Returns
System.Boolean
True if cannot save it, otherwise false. |