Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by Khena_B · Jul 14, 2017 at 03:58 AM · particlesrotatescaleparent

Particle scaling

I'm instantiating a particle system and setting it's x localscale to 1 or -1 depending on it's parent orientation, however it's sub emitters aren't flipping with the main particle system, if I use children instead of sub emitters the children don't flip with the parent either.

How do i have multiple particle systems or sub emitters follow the paren't localscale?

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

3 Replies

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

Answer by Khena_B · Jul 14, 2017 at 03:28 PM

It seems that there is no way to spawn particles in a specific orientation in a 2D game other than by using some complicated method such as orienting all the particles and sub emitter particles in code or having a specific hierarchy for the hierarchy scaling mode to work.

My solution was to get rid of my player's parent to have him as the root in the hierarchy, which is not what i wanted, then when instantiating the particles, parent them to my player, then set their localscale to (1,1,1), and then set their particle system scale mode to hierarchy, this is the only way that i found to spawn particles with sub emitters attached to my player and facing the same orientation. Hopefully i am doing something wrong because having to do all this makes no sense to me.

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 zxgats1986 · Feb 05, 2018 at 04:00 AM 0
Share

I'm working in a 2D view game with unity 2017.I was found the same problem , I have a little puzzles about your soulution. 'then when instantiating the particles, parent them to my player, then set their localscale to (1,1,1), and then set their particle system scale mode to hierarchy' do these steps in runtime can let particle system flip(facing the same orientation)?

avatar image
1

Answer by ifurkend · Jul 14, 2017 at 07:17 AM

First make sure scaling mode of your sub/child emitter is "hierarchy". Second, some older version of Unity would ignore negative scale for specific simulation space, so you may switch simulation space in main module, or just update your Unity.

Comment
Add comment · Show 3 · 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 Khena_B · Jul 14, 2017 at 12:45 PM 0
Share

I'm using unity 2017.1, also changing to hierarchy scaling mode doesn't make a difference, i think hierarchy looks at the root parent which is not the parent i want.

avatar image ifurkend Khena_B · Jul 14, 2017 at 01:57 PM 0
Share

Have you parented your sub emitter under the particle system which has its localScale modified on instantiation?

avatar image Khena_B ifurkend · Jul 14, 2017 at 02:02 PM 0
Share

I have a particle system which has a sub emitter, in the hierarchy this sub emitter appears as a child of the particle system.

When i instantiate this particle system i set the player as it's parent. It then scales with the player properly, but it's sub emitter does not.

I've even tried having my player as the root parent and use the "hierarchy" scaling mode and it doesn't work, this is driving me insane.

avatar image
0

Answer by Ivgenii · Feb 06, 2018 at 11:12 PM

You can create 2 particle system (first, scale = -1 second, scale = 1) if facingright - play first, if !facingright - play second one, if you flip stop both particle system. I use it in my "battle world" pixel art game and it work perfect.

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

72 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to Prevent Child Deformation on Rotate? 1 Answer

C#: Particle Prefab doesn't follow it's parent (sort of) 0 Answers

How to rotate/scale a prefab instance from the GUI? 2 Answers

Rotating and scaling children 1 Answer

Rotate the textures in the particle system to direction of the particle system? 1 Answer


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