Hello everyone!
I’m working on a Minecraft rip-off, and I have a block placing mechanism. I’m looking for a system that allows me to change the texture of a single block that gets cloned when you place it.
The idea is that the texture gets changed whenever you click a specific number on the keyboard. For example: 2, 3, 4. Thanks in advance!
Can the game detect which type of block you are using?
Not currently. This shouldn’t be necessary though.
Hi @RumaiIndustries ,
You can check out this example for changing materials at run time
https://playcanvas.com/project/437446/overview/changing-textures-at-runtime
2 Likes
Thanks! I think I’ll try this method.
More ideas are still welcomed.