NHÓM STEAM
The Sanders Family TComWrkShp
NHÓM STEAM
The Sanders Family TComWrkShp
27
ĐANG CHƠI
171
TRÊN MẠNG
Thành lập
23 Tháng 04, 2015
Ngôn ngữ
Tiếng Anh
Tất cả thảo luận > Thảo luận chung > Chi tiết chủ đề
Major 23 Thg09, 2018 @ 11:44am
Custom melee weapon doesn't have sound
Hi guys, so i have made a melee weapon for my map i'm working on, i managed to put it into the game but it doesn't have sound when i swing it, i used vanilla axe's sound but there is still no sound, does anybody know how to set up sound in unity? and how to set up sound for the right mouse click attack? i use old version of Unity 5.0.0 do i have to update to 5.4 or 5.5?
< >
Đang hiển thị 1-12 trong 12 bình luận
Freddy 23 Thg09, 2018 @ 1:49pm 
You need to update to 5.5.* (* version doesnt matter)
ZoliWorks 23 Thg09, 2018 @ 8:45pm 
Yeah, update to 5.5 and make sure your sound files are in wav format.
Major 24 Thg09, 2018 @ 7:34am 
Thank you both, i'll update to 5.5 and try it
Major 24 Thg09, 2018 @ 10:11am 
Update - sound works now but the weapon is invisible in inventory and when i drop it on the floor however it is visible when it's equipped. Also when the weapon is held the position is a little bit high, do i change that in Blender or is it possible in Unity?
ZoliWorks 24 Thg09, 2018 @ 9:19pm 
You sure it doesn't fall through the ground? Attach a box colder. You change the position by repositioning model_0 and 1. Attach a camera component to the icon and move it around till you see the weapon.
Major 25 Thg09, 2018 @ 10:43am 
I already added box collider and the weapon doesn't fall through the ground because i can pick it up in inventory as nearby item. Is it possible this problem occurs because i have quads on my model?
ZoliWorks 25 Thg09, 2018 @ 10:47pm 
I use quads and tris all the time, did you do any limited dissolving?
Major 26 Thg09, 2018 @ 4:36am 
no didn't do any limited dissolving, should i?
ZoliWorks 26 Thg09, 2018 @ 6:31am 
Nope, was just asking cause it messes up the faces and sometimes they dont render. Could you provide me with screenshots if your item prefab? including importing settingsof the model and every child object of the item object (the data on the right side of the screen about the objects interests me the most) aswell as some pictures of the model itself in blender. Did you try normalizing the model? Assigning it to lod groups in unity, recalculating those bounds?

You could take a look at this as it cover basic weapons and as far as i know melee weapons have a simmilar setup

And you could join this discord[discord.gg] for more help regarding your issue
Major 26 Thg09, 2018 @ 7:46am 
Yes i assigned lod groups but the recalcuate bounds button shows it's up to date also it looks like Unity didn't transfer tags and layers right when i updated it, they weren't in the right position, i changed that now, item should be as tag 4 and layer 13 right?
Major 26 Thg09, 2018 @ 7:59am 
yep that was the problem, don't know why i didn't check that out sooner lol the weapon works fine now, thanks for helping
ZoliWorks 26 Thg09, 2018 @ 9:53pm 
Nice, yeah I'd say import the tagmeneger.asset from the sources in unity and replace your tagmeneger.asset inside your unity project folder to have the corrects names set up
< >
Đang hiển thị 1-12 trong 12 bình luận
Mỗi trang: 1530 50

Tất cả thảo luận > Thảo luận chung > Chi tiết chủ đề