Class PrefabProxy
Content proxy for PrefabItem.
Inheritance
System.Object
FlaxEditor.Content.ContentProxy
FlaxEditor.Content.AssetProxy
PrefabProxy
Namespace: FlaxEditor.Content
Assembly: FlaxEngine.CSharp.dll
Syntax
[ContentContextMenu("New/Prefab")]
public sealed class PrefabProxy : JsonAssetBaseProxy
Constructors
PrefabProxy()
Declaration
public PrefabProxy()
Fields
AssetTypename
The prefab asset data typename.
Declaration
public static readonly string AssetTypename
Field Value
System.String
|
Extension
The prefab files extension.
Declaration
public static readonly string Extension
Field Value
System.String
|
Properties
AccentColor
Declaration
public override Color AccentColor { get; }
Property Value
Color
|
Overrides
FlaxEditor.Content.ContentProxy.AccentColor
FileExtension
Declaration
public override string FileExtension { get; }
Property Value
System.String
|
Overrides
FlaxEditor.Content.ContentProxy.FileExtension
Name
Declaration
public override string Name { get; }
Property Value
System.String
|
Overrides
FlaxEditor.Content.ContentProxy.Name
TypeName
Declaration
public override string TypeName { get; }
Property Value
System.String
|
Overrides
FlaxEditor.Content.AssetProxy.TypeName
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)
CanDrawThumbnail(ThumbnailRequest)
Declaration
public override bool CanDrawThumbnail(ThumbnailRequest request)
Parameters
FlaxEditor.Content.Thumbnails.ThumbnailRequest
request
|
Returns
System.Boolean
|
Overrides
FlaxEditor.Content.AssetProxy.CanDrawThumbnail(FlaxEditor.Content.Thumbnails.ThumbnailRequest)
CanReimport(ContentItem)
Declaration
public override bool CanReimport(ContentItem item)
Parameters
FlaxEditor.Content.ContentItem
item
|
Returns
System.Boolean
|
Overrides
FlaxEditor.Content.ContentProxy.CanReimport(FlaxEditor.Content.ContentItem)
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
FlaxEditor.Content.AssetProxy.ConstructItem(System.String, System.String, System.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()
IsProxyFor(ContentItem)
Declaration
public override bool IsProxyFor(ContentItem item)
Parameters
FlaxEditor.Content.ContentItem
item
|
Returns
System.Boolean
|
Overrides
FlaxEditor.Content.ContentProxy.IsProxyFor(FlaxEditor.Content.ContentItem)
IsProxyFor<T>()
Declaration
public override bool IsProxyFor<T>()
where T : Asset
Returns
System.Boolean
|
Type Parameters
T
|
Overrides
FlaxEditor.Content.ContentProxy.IsProxyFor<T>()
OnThumbnailDrawBegin(ThumbnailRequest, ContainerControl, GPUContext)
Declaration
public override void OnThumbnailDrawBegin(ThumbnailRequest request, ContainerControl guiRoot, GPUContext context)
Parameters
FlaxEditor.Content.Thumbnails.ThumbnailRequest
request
|
ContainerControl
guiRoot
|
GPUContext
context
|
Overrides
FlaxEditor.Content.AssetProxy.OnThumbnailDrawBegin(FlaxEditor.Content.Thumbnails.ThumbnailRequest, FlaxEngine.GUI.ContainerControl, FlaxEngine.GPUContext)
OnThumbnailDrawEnd(ThumbnailRequest, ContainerControl)
Declaration
public override void OnThumbnailDrawEnd(ThumbnailRequest request, ContainerControl guiRoot)
Parameters
FlaxEditor.Content.Thumbnails.ThumbnailRequest
request
|
ContainerControl
guiRoot
|
Overrides
FlaxEditor.Content.AssetProxy.OnThumbnailDrawEnd(FlaxEditor.Content.Thumbnails.ThumbnailRequest, FlaxEngine.GUI.ContainerControl)
OnThumbnailDrawPrepare(ThumbnailRequest)
Declaration
public override void OnThumbnailDrawPrepare(ThumbnailRequest request)
Parameters
FlaxEditor.Content.Thumbnails.ThumbnailRequest
request
|
Overrides
FlaxEditor.Content.AssetProxy.OnThumbnailDrawPrepare(FlaxEditor.Content.Thumbnails.ThumbnailRequest)
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)