|
Post by william618 on Sept 14, 2019 17:25:26 GMT
Hello,
I am stucked on my project because I want to hide some UI Shooter Mobile buttons when I equip for example a Melee Weapon to don't have too many buttons on the screen. I don't know which condition I should write in my script to check if the holded weapon is a Melee Weapon or a Shooter Weapon or if there is no weapon at all.. Can someone help me? I would be glad. Then I could disable/enable dynamically some buttons on the UI.. like in PUBG.
For now I can make work this on the Update of a function by getting the Transforms into the Hierachy.. but it is not so optimized.. maybe there should be a better way.
|
|
|
Post by hobbycoder on Sept 15, 2019 4:18:30 GMT
You mean this? This is my setting..
|
|
|
Post by william618 on Sept 15, 2019 10:36:36 GMT
You mean this? This is my setting.. hehehe thanks! This what I was looking for. I wasted much time yesterday to do a stupid script. I must check if this solution would work in all cases without an additional script. Thanks anyway:)
|
|