Class ScriptProxy
Context proxy object for script files (represented by ScriptItem).
Namespace: FlaxEditor.Content
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class ScriptProxy : ContentProxy
Constructors
ScriptProxy()
Declaration
protected ScriptProxy()
Properties
AccentColor
Declaration
public override Color AccentColor { get; }
Property Value
Color
|
Overrides
FlaxEditor.Content.ContentProxy.AccentColor
NewItemName
Declaration
public override string NewItemName { get; }
Property Value
System.String
|
Overrides
FlaxEditor.Content.ContentProxy.NewItemName
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)
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)
IsFileNameValid(String)
Declaration
public override bool IsFileNameValid(string filename)
Parameters
System.String
filename
|
Returns
System.Boolean
|
Overrides
FlaxEditor.Content.ContentProxy.IsFileNameValid(System.String)
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)
TryGetProjectAtFolder(String, out String)
Tries the get project that is related to the given source file path. Works only for source files located under Source folder of the project.
Declaration
protected ProjectInfo TryGetProjectAtFolder(string path, out string moduleName)
Parameters
System.String
path
The path. |
System.String
moduleName
The name of the module where the source file lays. Computed from path. Might be invalid.. |
Returns
ProjectInfo
The found project or null. |
Extension Methods
See Also
FlaxEditor.Content.ContentProxy