Class VisualScriptItem
Implementation of BinaryAssetItem for VisualScript assets.
Inheritance
System.Object
FlaxEditor.Content.ContentItem
FlaxEditor.Content.AssetItem
VisualScriptItem
Implements
System.IComparable
Namespace: FlaxEditor.Content
Assembly: FlaxEngine.CSharp.dll
Syntax
public class VisualScriptItem : BinaryAssetItem, IComparable, IDrawable
Constructors
VisualScriptItem(String, ref Guid, String, Type)
Declaration
public VisualScriptItem(string path, ref Guid id, string typeName, Type type)
Parameters
System.String
path
|
System.Guid
id
|
System.String
typeName
|
System.Type
type
|
Fields
VisualScripts
The cached list of all Visual Script assets found in the workspace (engine, game and plugin projects). Updated on workspace modifications.
Declaration
public static readonly List<VisualScriptItem> VisualScripts
Field Value
System.Collections.Generic.List<VisualScriptItem>
|
Properties
DefaultThumbnail
Declaration
public override SpriteHandle DefaultThumbnail { get; }
Property Value
SpriteHandle
|
Overrides
FlaxEditor.Content.ContentItem.DefaultThumbnail
DrawShadow
Declaration
protected override bool DrawShadow { get; }
Property Value
System.Boolean
|
Overrides
FlaxEditor.Content.AssetItem.DrawShadow
ScriptType
The Visual Script type. Can be null if failed to load asset.
Declaration
public ScriptType ScriptType { get; }
Property Value
FlaxEditor.Scripting.ScriptType
|
Methods
OnDestroy()
Declaration
public override void OnDestroy()
Overrides
FlaxEditor.Content.ContentItem.OnDestroy()
OnEditorDrag(Object)
Declaration
public override bool OnEditorDrag(object context)
Parameters
System.Object
context
|
Returns
System.Boolean
|
Overrides
FlaxEditor.Content.AssetItem.OnEditorDrag(System.Object)
OnEditorDrop(Object)
Declaration
public override Actor OnEditorDrop(object context)
Parameters
System.Object
context
|
Returns
Actor
|
Overrides
FlaxEditor.Content.AssetItem.OnEditorDrop(System.Object)