Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by HanibalDM · Sep 04, 2014 at 09:26 AM · 2dparticlesspritesspritesheet

Random 2d particles in Particle_system from spritesheet

Hi! Can't find a way. I have spritesheet of several feathers that i want to act as particles. I set particle system - then assign material which is a spritesheet already sliced in unity and set render - with alpha transparent. The thing is that the whole spritesheet is generated as particle but i want each particle to be randomly taken from the spritesheet so the feathers will be different(i have about 8 variants). Please help.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
12
Best Answer

Answer by Louis-N-D · Sep 04, 2014 at 05:49 PM

It is possible, and I use the technique extensively.. Not only to produce variation but also to allow all particle emitters in my game to share a single material.

In the emitter's "Texture Sheet Animation" settings, assuming you have a sheet of 16 different feathers in a 4x4 grid, set things up this way:

Tiles X:4 Y:4 Animation: Whole Sheet Frame over time: (select "random between two constants") 0 to 15 Cycles: 1

Play around with these settings to see how you can use them to incorporate multiple particles onto one sheet. For animations or randomization as you're doing, I usually put all the frames on one row and set the Animation setting to Single Row instead of Whole Sheet. Anyway, experiment with that.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image HanibalDM · Sep 06, 2014 at 09:07 AM 0
Share

Thank you ! It's Alive! Alive! ^) Now theme can be closed ^)

avatar image
0

Answer by LSPressWorks · Sep 04, 2014 at 03:21 PM

I'd split then up, create an array of a variable for the materials, and select a random array element to assign personally.this allow you to add, change pieces of art without re doing the sprite sheet. Otherwise there is a YouTube bid called like, unity advocate texture, that links to a script that can handle that via it's index variable. Being on phone i can't get to it though.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Animating hair over sprite animation 0 Answers

Fast Sprites Extraction from Sprite Sheet 0 Answers

Can Normal maps be used to create a 2D sprites lighting system? 2 Answers

Make 2D sprites glow? 4 Answers

random sprite javascript 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges