Search Results for

    Show / Hide Table of Contents

    Class VisualScriptProxy

    A VisualScript asset proxy object.

    Inheritance
    System.Object
    FlaxEditor.Content.ContentProxy
    FlaxEditor.Content.AssetProxy
    BinaryAssetProxy
    VisualScriptProxy
    Implements
    IScriptTypesContainer
    Inherited Members
    BinaryAssetProxy.Extension
    BinaryAssetProxy.IsProxyFor(ContentItem)
    BinaryAssetProxy.IsProxyFor<T>()
    BinaryAssetProxy.FileExtension
    BinaryAssetProxy.TypeName
    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
    FlaxEditor.Content.ContentProxy.AccentColor

    AssetType

    Gets the type of the asset.

    Declaration
    public override Type AssetType { get; }
    Property Value
    System.Type

    Overrides
    BinaryAssetProxy.AssetType

    Name

    Declaration
    public override string Name { get; }
    Property Value
    System.String

    Overrides
    FlaxEditor.Content.ContentProxy.Name

    Methods

    CanCreate(ContentFolder)

    Declaration
    public override bool CanCreate(ContentFolder targetLocation)
    Parameters
    FlaxEditor.Content.ContentFolder targetLocation

    Returns
    System.Boolean

    Overrides
    FlaxEditor.Content.ContentProxy.CanCreate(FlaxEditor.Content.ContentFolder)

    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
    BinaryAssetProxy.ConstructItem(String, String, ref Guid)

    Create(String, Object)

    Declaration
    public override void Create(string outputPath, object arg)
    Parameters
    System.String outputPath

    System.Object arg

    Overrides
    FlaxEditor.Content.ContentProxy.Create(System.String, System.Object)

    Dispose()

    Declaration
    public override void Dispose()
    Overrides
    FlaxEditor.Content.ContentProxy.Dispose()

    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
    IScriptTypesContainer.GetDerivedTypes(ScriptType, List<ScriptType>, Func<ScriptType, Boolean>)

    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
    IScriptTypesContainer.GetType(String)

    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
    IScriptTypesContainer.GetTypes(List<ScriptType>, Func<ScriptType, Boolean>)

    Open(Editor, ContentItem)

    Declaration
    public override EditorWindow Open(Editor editor, ContentItem item)
    Parameters
    Editor editor

    FlaxEditor.Content.ContentItem item

    Returns
    EditorWindow

    Overrides
    FlaxEditor.Content.ContentProxy.Open(FlaxEditor.Editor, FlaxEditor.Content.ContentItem)

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)

    See Also

    BinaryAssetProxy
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat