mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
Integrates sound and shapeAnimation assets into the importer
Added drag-n-drop spawn action for soundAssets
This commit is contained in:
parent
20479cd818
commit
1942535923
6 changed files with 279 additions and 13 deletions
|
|
@ -95,8 +95,8 @@ SoundAsset::SoundAsset()
|
|||
mSoundFile = StringTable->EmptyString();
|
||||
mSoundPath = StringTable->EmptyString();
|
||||
|
||||
mPitchAdjust = 0;
|
||||
mVolumeAdjust = 0;
|
||||
mPitchAdjust = 1;
|
||||
mVolumeAdjust = 1;
|
||||
|
||||
//mSound = nullptr;
|
||||
}
|
||||
|
|
@ -157,3 +157,8 @@ void SoundAsset::setSoundFile(const char* pSoundFile)
|
|||
// Refresh the asset.
|
||||
refreshAsset();
|
||||
}
|
||||
|
||||
DefineEngineMethod(SoundAsset, getSoundPath, const char*, (), , "")
|
||||
{
|
||||
return object->getSoundPath();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue