Obi Official Forum

Full Version: Per Particle Coloration
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guy's,

I'm a AR/VR developer for industrial applications.
We bought ObiRope 4.0.

i would like to highlight a touched particle with a Controller.
I see in patchNote 3.3, exactly what I want in thread :  Per Particle Color & Thickness.
http://blog.virtualmethodstudio.com/2018...whats-new/

Is there an example of per particle scripting coloration ? 

Thanks.

BTW : Really nice package !
(08-04-2019, 03:25 PM)romainD Wrote: [ -> ]Hi guy's,

I'm a AR/VR developer for industrial applications.
We bought ObiRope 4.0.

i would like to highlight a touched particle with a Controller.
I see in patchNote 3.3, exactly what I want in thread :  Per Particle Color & Thickness.
http://blog.virtualmethodstudio.com/2018...whats-new/

Is there an example of per particle scripting coloration ? 

Thanks.

BTW : Really nice package !

Hi there!

You can work with color just as you do with any other particle property (position, velocity, etc). See:
http://obi.virtualmethodstudio.com/tutor...icles.html

For instance:
Code:
for (int i = 0; i < actor.colors.Length; ++i){
            actor.colors[i] = Color.blue;
}
OK, 
it's working great now ! 

Thanks a lot's ! 

I wasn't using ObiParticleRenderer Gran sonrisa