Jump to content

Particle in a prefab using sprite sheet bug


tjheldna
 Share

Recommended Posts

I'm creating a prefab with multiple emitters to form an explosion. All the particles use the sprite sheet feature.

 

When the emitter is placed directly in the level the sprite sheet plays properly. When placed in a prefab and loaded in code the particles texture displays the entire sheet and not play through the sequence.

 

post-5086-0-15412500-1446930742.png

 

As you can see in the red square. each of those dots is a section on the sprite sheet. In the particles I've set the uv animations to 4 and 4 anim cycle 1 and double checked the settings are correct.

 

 

Cheers

trindieprod.png?dl=0spacer.png?dl=0steam-icon.png?dl=0twitter-icon.png?dl=0spacer.png?dl=0
Link to comment
Share on other sites

I noticed when we placed this in the scene (not a prefab but just the emitter) and I tried to call :Instance() on it, the new instance would act the incorrect way too. So something with making new instances. I'm guessing some fields for emitters aren't getting set when a copy is made via Instance().

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...