I used the PCG method to quickly generate multiple spheres in the area, but what I got was an ISM object, and I wanted the texture to change when I clicked on a single sphere object.I wonder if there’s way I can do to achieve my goal! Thanks for any advice.
What’s the actual end goal?
I wanted the texture to change when I clicked on a single sphere object
This can be achieved in many ways, but all (?) of them come with caveats. What to choose depends on the details.
- replace the clicked instance with a static mesh → assign new material
- use per instance custom data
- move the instance to another ISMc
Sorry for not explaining clearly. My end goal is as follows, for example, there are eighty spheres in my picture. When I click on one of them, its color turns red, which means I hope to be able to manipulate each sphere individually and set its material.
I will try the method you mentioned.Thanks!
Just to clarify, these are 3 separate methods.
Colour does not need to equal a new material. If it’s about changing just the colour, try the Per Instance Custom Dat
a approach - definitely the most fun to learn out of the abovementioned bunch:
In short: imagine you did not need to store colour information in a material, but you could do it in each sphere instance instead. Here’s an example: