mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-19 14:43:47 +00:00
set preview image
set the image asset preview image for namedTargets
This commit is contained in:
parent
bab7878ca6
commit
16d219769f
2 changed files with 10 additions and 2 deletions
|
|
@ -649,6 +649,14 @@ DefineEngineMethod(ImageAsset, getImageInfo, const char*, (), ,
|
|||
return object->getImageInfo();
|
||||
}
|
||||
|
||||
DefineEngineMethod(ImageAsset, isNamedTarget, bool, (), ,
|
||||
"Gets whether this image is a named target.\n"
|
||||
"@return bool for isNamedTarget.")
|
||||
{
|
||||
return object->isNamedTarget();
|
||||
}
|
||||
|
||||
|
||||
#ifdef TORQUE_TOOLS
|
||||
DefineEngineStaticMethod(ImageAsset, getAssetIdByFilename, const char*, (const char* filePath), (""),
|
||||
"Queries the Asset Database to see if any asset exists that is associated with the provided file path.\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue