Unity Particel System Bug Study

Source: Internet
Author: User

Today deal with the protagonist skill special effects encounter 2 questions, and share with you.

1. Is the Trailrender drag problem, the protagonist skills are placed in the effect of the pool inside, when the special effects with Trailrender re-use, the second use of the trailer may appear in the position before the shot to the protagonist position, and then dragged out. The workaround is to set the Trailrender.time to 0 at the end of each skill release, and set the value again when the next replay.

2. It is the position of the particlesystem, we should have shown that the particles of the enemy are always inexplicable to show up somewhere else. The reason is that the simulationspace of the particle system setting is set to world. It is possible to set Particlesystemsimulationspace as local after testing. In addition, the problem only appears on the phone, in unity does not appear, because the normal mobile phone FPS can only run to about 30, and the PC can run to more than 60, all PS on the see. After the vertical synchronization is turned off, force fps=30. You can reproduce the problem on your phone. Since our particles are not placed on the root node, it is possible that simulationspace internally automatically calculates the actual position of the particles based on local and world. So the general value of local is OK.

Unity Particel System Bug Study

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.