| CursorDefinitionCustomEditorRenderStaticPreview Method |
An override so we can draw our own icon in the editor
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core.Editor (in DustProductions.Core.Editor.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public override Texture2D RenderStaticPreview(
string assetPath,
Object[] subAssets,
int width,
int height
)
Parameters
- assetPath
- Type: SystemString
The path to the asset we are drawing - subAssets
- Type: Object
Any assets that are related to this asset - width
- Type: SystemInt32
The width of the icon - height
- Type: SystemInt32
The height of the icon
Return Value
Type:
Texture2DThe texture to draw, which the engine then uses
See Also