mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
Merge branch 'SoundAssetInitRollin' of https://github.com/Areloch/Torque3D into Preview4_0
This commit is contained in:
commit
cd1fd1ccf4
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