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