Class ScriptNodeViewExtensions
Inheritance
System.Object
ScriptNodeViewExtensions
Syntax
public static class ScriptNodeViewExtensions : object
Methods
AddPreview<TNode>(ScriptNodeView, Func<TNode, Texture2D>)
Declaration
public static void AddPreview<TNode>(this ScriptNodeView nodeView, Func<TNode, Texture2D> getTexture)
where TNode : ProcessorNode
Parameters
Type |
Name |
Description |
ScriptNodeView |
nodeView |
|
Func<TNode, Texture2D> |
getTexture |
|
Type Parameters
AddPreviewImage(ScriptNodeView)
Adds a default preview image element to the script node view.
Declaration
public static Image AddPreviewImage(this ScriptNodeView nodeView)
Parameters
Returns
Type |
Description |
Image |
The image element.
|
AddPreviewImage(ScriptNodeView, out VisualElement)
Declaration
public static Image AddPreviewImage(this ScriptNodeView nodeView, out VisualElement imageContainer)
Parameters
Type |
Name |
Description |
ScriptNodeView |
nodeView |
|
VisualElement |
imageContainer |
|
Returns
AddPreviewImage<TNode>(ScriptNodeView, Func<TNode, Texture2D>)
Declaration
public static void AddPreviewImage<TNode>(this ScriptNodeView nodeView, Func<TNode, Texture2D> getTexture)
where TNode : ProcessorNode
Parameters
Type |
Name |
Description |
ScriptNodeView |
nodeView |
|
Func<TNode, Texture2D> |
getTexture |
|
Type Parameters
RegisterUpdateImage<TNode>(ScriptNodeView, IScriptNode, Image, Func<TNode, Texture2D>)
Declaration
public static Action<ProcessorNode> RegisterUpdateImage<TNode>(this ScriptNodeView nodeView, IScriptNode node, Image previewImage, Func<TNode, Texture2D> getTexture)
where TNode : ProcessorNode
Parameters
Returns
Type Parameters
UnregisterUpdateImage(ScriptNodeView, Action<ProcessorNode>)
Declaration
public static void UnregisterUpdateImage(this ScriptNodeView nodeView, Action<ProcessorNode> processingCompleteAction)
Parameters
UpdatePreviewImage(ScriptNodeView, Image, Texture2D)
Sets a texture to the image element.
Declaration
public static void UpdatePreviewImage(this ScriptNodeView nodeView, Image previewImage, Texture2D texture)
Parameters
Type |
Name |
Description |
ScriptNodeView |
nodeView |
The script node view.
|
Image |
previewImage |
The image element.
|
Texture2D |
texture |
The texture.
|