Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I could now trigger the effect, but only as long as your buzzer is also loaded by side. Also, my button doesn't work if your button is activated even once. Entirely not sure what I'm missing. Changed the name of my function but that means, the button no longer triggers on click..
1) The custom bundle when imported floats on the table instead of laying flat - I'm not entirely sure what I'm missing.
2) I'm able to see the effect and trigger it in right-click context menu. Copying your script to the object isn't triggering the effect on-click event. Again, not sure what I'm missing.
But before you build the asset bundle, you go to one of you objects and, in the inspector panel, add a component. There are 2 scripts, one for changing the sounds an object makes as it impacts/moves, and one for adding looping effects or trigger effects. You select the looping/trigger script.
From there, you tell it how many looping/trigger effects you want (0 looping, 1 trigger). You then get dropdowns to select what you want from the effect. You disable everything but the sound effect. Then you drag and drop your sound effect into unity so it becomes an asset, then you drag and drop that audio asset into the appropriate box in that filter selection. Then you can import it into TTS.
You can steal my script off of this object. It is what triggers the asset bundle's trigger effect. Its just a script button hidden inside of the model.
http://berserk-games.com/knowledgebase/assetbundles/
Once you have the right version of unity and their project file, you create an object (this object is just a cylendar with a red material and a box with a grey material), that is all in the guide.
(to be continued)
I also added a timer that prevents multiple presses within a certain time period. Default is 2 seconds. You can change that at the top of the script too. Cheers!