x


Shuriken Particle System - Accessing the emitter mesh through script

Hi there,

I have been looking everywhere for this, but to no avail. Basically, how do you access the mesh variable within the shape module on the new Shuriken particle emitters? The current documentation on Shuriken in the script reference (here: http://unity3d.com/support/documentation/ScriptReference/ParticleSystem.html) has no reference to variables in other modules other than the Initial Module.

The reason I'd like to access it through script is because I am wanting to procedurally generate meshes for volumetric cloud systems. If there is actually no way to access it, well I suppose I'd need to go back to the drawing board ...

Sorry for the long post size ... I'm not great at being succinct! :D

Thanks very much, Klep

more ▼

asked Feb 25 '12 at 03:13 AM

Kleptomaniac gravatar image

Kleptomaniac
2.5k 6 12 21

So is there absolutely no way to access this variable?

Mar 01 '12 at 08:21 AM Kleptomaniac

I know that this will be a shameless BUMP, but this still affects me. Maybe it has some relevance now that 3.5 has been out for quite some time?

Apr 08 '12 at 03:53 PM Kleptomaniac

well, I dont want to dissapoint you, but, you cant, i had the same problem, BUT , it will be added soon as I read in unity forums from the Unity HQ Coppenhagen : "In the next release of Shuriken this will be possible. Shuriken will use the transform.scale for emitter size."

Apr 09 '12 at 01:33 AM Graphicated

Oh really? Oh, that's great! OK ... well I've delayed what i wanted to do with it already for a few months, so I guess a few more months won't hurt.

There was no disappointing done ... I kinda expected it :D

Thanks anyway!

Apr 09 '12 at 01:35 AM Kleptomaniac

If you're just trying to dynamically change the scale of the effect you can do this with an animation curve that modifies the scale properties of the emitter. You can create an animation that blends between your minimum and maximum size, and then procedurally set the current time of the animation (AnimationState.normalizedTime) to select the desired scale. A little indirect, but it works for the particular use case of resizing the effect.

Apr 22 '12 at 04:33 AM yoyo
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I'm using Unity 4, and this doesn't seem to be in yet. I can't find documentation for it either.

I'm fairly annoyed that "legacy" is used to describe the only fully-functional particle system. I would have gone with the old system from the get-go with if wasn't called "Legacy" and Shuriken was called "Beta" instead.

more ▼

answered Mar 07 at 07:01 PM

Benoit Dufresne gravatar image

Benoit Dufresne
11

(comments are locked)
10|3000 characters needed characters left

Is this still not supported?

more ▼

answered Dec 21 '12 at 06:31 AM

tayl0r gravatar image

tayl0r
46 2 5 7

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1403
x335
x169
x25
x1

asked: Feb 25 '12 at 03:13 AM

Seen: 4683 times

Last Updated: Mar 07 at 07:01 PM