Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Particle shape meshRenderer error mobile device

Discussion in 'General Graphics' started by Irina-uk, May 22, 2020.

  1. Irina-uk

    Irina-uk

    Joined:
    Feb 14, 2014
    Posts:
    62
    Hi! Unity 2019.3.0f
    Error render mobile device, pc render ok, with weapons where more than 300 triangles. ParticleEffect weapon fire. What's wrong ??

    Object parameters:
    350 Triangles, on a mobile device, emission of particles in (x == 0, y == 0, z == 0) position (error), on a computer emission in position on a weapon.

    An error occurs on a mobile device, if only on the model to which we connect the particles, more than 300 vertices.

    Perhaps somewhere you need to change the settings Unity3D so that the particles are rendered on the mobile following the weapon?



    ParticleSystem ps = GetComponent <ParticleSystem> ();
    var sh = ps.shape;
    sh.shapeType = ParticleSystemShapeType.MeshRenderer ;
    sh.meshRenderer = weapon.GetComponent<MeshRenderer>();

    Please help.

     
    Last edited: May 23, 2020