Class VisualScriptProxy
A VisualScript asset proxy object.
Inheritance
Namespace: FlaxEditor.Content
Assembly: FlaxEngine.CSharp.dll
Syntax
[ContentContextMenu("New/Visual Script")]
public class VisualScriptProxy : BinaryAssetProxy, IScriptTypesContainer
Properties
AccentColor
Declaration
public override Color AccentColor { get; }
Property Value
Color
|
Overrides
AssetType
Gets the type of the asset.
Declaration
public override Type AssetType { get; }
Property Value
System.Type
|
Overrides
Name
Declaration
public override string Name { get; }
Property Value
System.String
|
Overrides
Methods
CanCreate(ContentFolder)
Declaration
public override bool CanCreate(ContentFolder targetLocation)
Parameters
FlaxEditor.Content.ContentFolder
targetLocation
|
Returns
System.Boolean
|
Overrides
ConstructItem(String, String, ref Guid)
Declaration
public override AssetItem ConstructItem(string path, string typeName, ref Guid id)
Parameters
System.String
path
|
System.String
typeName
|
System.Guid
id
|
Returns
FlaxEditor.Content.AssetItem
|
Overrides
Create(String, Object)
Declaration
public override void Create(string outputPath, object arg)
Parameters
System.String
outputPath
|
System.Object
arg
|
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
GetDerivedTypes(ScriptType, List<ScriptType>, Func<ScriptType, Boolean>)
Gets all the derived types from the given base type (excluding that type) within all the loaded assemblies.
Declaration
public void GetDerivedTypes(ScriptType baseType, List<ScriptType> result, Func<ScriptType, bool> checkFunc)
Parameters
FlaxEditor.Scripting.ScriptType
baseType
The base type. |
System.Collections.Generic.List<FlaxEditor.Scripting.ScriptType>
result
The result collection. Elements will be added to it. Clear it before usage. |
System.Func<FlaxEditor.Scripting.ScriptType, System.Boolean>
checkFunc
Additional callback used to check if the given type is valid. Returns true if add type, otherwise false. |
Implements
GetType(String)
Tries to get the object type from the given full typename. Searches in-build Flax Engine/Editor assemblies and game assemblies.
Declaration
public ScriptType GetType(string typeName)
Parameters
System.String
typeName
The full name of the type. |
Returns
FlaxEditor.Scripting.ScriptType
The type or null if failed. |
Implements
GetTypes(List<ScriptType>, Func<ScriptType, Boolean>)
Gets all the types within all the loaded assemblies.
Declaration
public void GetTypes(List<ScriptType> result, Func<ScriptType, bool> checkFunc)
Parameters
System.Collections.Generic.List<FlaxEditor.Scripting.ScriptType>
result
The result collection. Elements will be added to it. Clear it before usage. |
System.Func<FlaxEditor.Scripting.ScriptType, System.Boolean>
checkFunc
Additional callback used to check if the given type is valid. Returns true if add type, otherwise false. |
Implements
Open(Editor, ContentItem)
Declaration
public override EditorWindow Open(Editor editor, ContentItem item)
Parameters
Editor
editor
|
FlaxEditor.Content.ContentItem
item
|
Returns
EditorWindow
|