Class ScriptItem
Content item that contains script file with source code.
Implements
System.IComparable
Namespace: FlaxEditor.Content
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class ScriptItem : ContentItem, IComparable, IDrawable
Constructors
ScriptItem(String)
Initializes a new instance of the ScriptItem class.
Declaration
protected ScriptItem(string path)
Parameters
System.String
path
The path to the item. |
Properties
IsValid
Checks if the script item references the valid use script type that can be used in a gameplay.
Declaration
public bool IsValid { get; }
Property Value
System.Boolean
|
ItemType
Declaration
public override ContentItemType ItemType { get; }
Property Value
FlaxEditor.Content.ContentItemType
|
Overrides
FlaxEditor.Content.ContentItem.ItemType
ScriptName
Gets the name of the script (deducted from the asset name).
Declaration
public string ScriptName { get; }
Property Value
System.String
|
SearchFilter
Declaration
public override ContentItemSearchFilter SearchFilter { get; }
Property Value
FlaxEditor.Content.ContentItemSearchFilter
|
Overrides
FlaxEditor.Content.ContentItem.SearchFilter
Methods
CreateScriptName(String)
Creates the name of the script for the given file.
Declaration
public static string CreateScriptName(string path)
Parameters
System.String
path
The path. |
Returns
System.String
Script name |
FindScriptWitScriptName(String)
Declaration
public override ScriptItem FindScriptWitScriptName(string scriptName)
Parameters
System.String
scriptName
|
Returns
ScriptItem
|
Overrides
FlaxEditor.Content.ContentItem.FindScriptWitScriptName(System.String)
OnDelete()
Declaration
public override void OnDelete()
Overrides
FlaxEditor.Content.ContentItem.OnDelete()
OnPathChanged()
Declaration
public override void OnPathChanged()
Overrides
FlaxEditor.Content.ContentItem.OnPathChanged()
Extension Methods
See Also
FlaxEditor.Content.ContentItem