Question by
Equ1l1brist · Jan 02, 2019 at 12:32 AM ·
programmingtexturesgameplayprogrammatically
How can you get dynamic textures and conflicting behaviours for a single game object?
An example of what I mean by the above question would be having a wall which is initially fully opaque and cannot be passed through, but which you can click on to make a portion of that wall transparent and also allow the player to walk through it. Here's a link to example of this feature in A Hat in Time, skip to 03:20 https://www.youtube.com/watch?v=b8Yz-YGc9w4&ab_channel=dragon_blade).
Even a high level example would be appreciated, so there's no need to provide a working script.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612184916im_/https://answers.unity.com/themes/thub/images/avi.jpg)