Class ContentEditingModule
Opening/editing asset windows module.
Inheritance
Namespace: FlaxEditor.Modules
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class ContentEditingModule : EditorModuleMethods
CloneAssetFile(String, String, Guid)
Duplicates the asset file and changes it's ID.
Declaration
public bool CloneAssetFile(string srcPath, string dstPath, Guid dstId)Parameters
| System.String
        srcPath The source file path. | 
| System.String
        dstPath The destination file path. | 
| System.Guid
        dstId The destination asset identifier. | 
Returns
| System.Boolean True if cannot perform that operation, otherwise false. | 
FastTempAssetClone(String, out String)
Clones the asset to the temporary folder.
Declaration
public bool FastTempAssetClone(string srcPath, out string resultPath)Parameters
| System.String
        srcPath The path of the source asset to clone. | 
| System.String
        resultPath The result path. | 
Returns
| System.Boolean True if failed, otherwise false. | 
IsValidAssetName(ContentItem, String, out String)
Determines whether specified new short name is valid name for the given content item.
Declaration
public bool IsValidAssetName(ContentItem item, string shortName, out string hint)Parameters
| FlaxEditor.Content.ContentItem
        item The item. | 
| System.String
        shortName The new short name. | 
| System.String
        hint The hint text if name is invalid. | 
Returns
| System.Boolean 
 | 
Open(ContentItem, Boolean)
Opens the specified item in dedicated editor window.
Declaration
public EditorWindow Open(ContentItem item, bool disableAutoShow = false)Parameters
| FlaxEditor.Content.ContentItem
        item The content item. | 
| System.Boolean
        disableAutoShow True if disable automatic window showing. Used during workspace layout loading to deserialize it faster. | 
Returns
| EditorWindow Opened window or null if cannot open item. | 
Open(Asset, Boolean)
Opens the specified asset in dedicated editor window.
Declaration
public EditorWindow Open(Asset asset, bool disableAutoShow = false)Parameters
| Asset
        asset The asset. | 
| System.Boolean
        disableAutoShow True if disable automatic window showing. Used during workspace layout loading to deserialize it faster. | 
Returns
| EditorWindow Opened window or null if cannot open item. |