mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 23:05:38 +00:00
Initial hook-in of the sound asset's integration into sfxEmitter, as well as some fixups for editor/workflow usage.
This commit is contained in:
parent
6fc67a11bb
commit
56b0a0cb85
6 changed files with 214 additions and 138 deletions
|
|
@ -38,7 +38,7 @@ function AssetBrowser::onSoundAssetEditorDropped(%this, %assetDef, %position)
|
|||
%newSFXEmitter = new SFXEmitter()
|
||||
{
|
||||
position = %pos;
|
||||
fileName = %assetDef.getSoundPath();
|
||||
soundAsset = %assetDef.getAssetId();
|
||||
pitch = %assetDef.pitchAdjust;
|
||||
volume = %assetDef.volumeAdjust;
|
||||
};
|
||||
|
|
@ -50,4 +50,9 @@ function AssetBrowser::onSoundAssetEditorDropped(%this, %assetDef, %position)
|
|||
|
||||
EWorldEditor.isDirty = true;
|
||||
|
||||
}
|
||||
|
||||
function AssetBrowser::editSoundAsset(%this, %assetDef)
|
||||
{
|
||||
%soundSource = %assetDef.playSound();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue