- Home /
Detecting taps on particles in a particle system
I am making a scientific visualization app of the Galaxy. Among other things, it displays where certain deep sky objects are located in and around the Galaxy.
There are 6 or 7 classes of object types (stars, star clusters, nebulae, globular clusters, etc). Each object within a class looks the same (using the same image).
I've tried creating GameObjects for each deep sky object, but the system can get bogged down with many objects (~10,000). So instead I create a particle system for each class of object, setting the specific image to display for each class. Each particle is created at the appropriate location and then I do a SetParticles to add them to that class's particle system. This works really well and I can have 100,000 objects (particles) with decent performance.
However, I need to allow the user to click/tap on an object to select it. I have not found any examples of how to do hit testing on individual particles in the particle system. Is this possible?
Thanks, Bill
Your answer
Follow this Question
Related Questions
How to make leaves particles rotate during fall, but falling flat on the ground? 0 Answers
How to make particles move irrespective of object(emitter) rotation? 1 Answer
On collison of 2 object how to spawn particle at specified position 1 Answer
Particle System using recycling background transform as custom simulation space 0 Answers