Class ScriptNodeViewExtensions
Inheritance
object
ScriptNodeViewExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.MapGraph.Editor
Syntax
public static class ScriptNodeViewExtensions
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 | |
System.Func<T, TResult><TNode, UnityEngine.Texture2D> | getTexture |
Type Parameters
Name | Description |
---|---|
TNode |
AddPreviewImage(ScriptNodeView, out VisualElement)
Declaration
public static Image AddPreviewImage(this ScriptNodeView nodeView, out VisualElement imageContainer)
Parameters
Type | Name | Description |
---|---|---|
ScriptNodeView | nodeView | |
UnityEngine.UIElements.VisualElement | imageContainer |
Returns
Type | Description |
---|---|
UnityEngine.UIElements.Image |
AddPreviewImage(ScriptNodeView)
Adds a default preview image element to the script node view.
Declaration
public static Image AddPreviewImage(this ScriptNodeView nodeView)
Parameters
Type | Name | Description |
---|---|---|
ScriptNodeView | nodeView | The script node view. |
Returns
Type | Description |
---|---|
UnityEngine.UIElements.Image | The image element. |
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 | |
System.Func<T, TResult><TNode, UnityEngine.Texture2D> | getTexture |
Type Parameters
Name | Description |
---|---|
TNode |
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
Type | Name | Description |
---|---|---|
ScriptNodeView | nodeView | |
IScriptNode | node | |
UnityEngine.UIElements.Image | previewImage | |
System.Func<T, TResult><TNode, UnityEngine.Texture2D> | getTexture |
Returns
Type | Description |
---|---|
System.Action<T><ProcessorNode> |
Type Parameters
Name | Description |
---|---|
TNode |
UnregisterUpdateImage(ScriptNodeView, Action<ProcessorNode>)
Declaration
public static void UnregisterUpdateImage(this ScriptNodeView nodeView, Action<ProcessorNode> processingCompleteAction)
Parameters
Type | Name | Description |
---|---|---|
ScriptNodeView | nodeView | |
System.Action<T><ProcessorNode> | processingCompleteAction |
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. |
UnityEngine.UIElements.Image | previewImage | The image element. |
UnityEngine.Texture2D | texture | The texture. |