Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Official Mesh weighting feature

Discussion in 'Particle System Previews' started by richardkettlewell, Apr 6, 2021.

Thread Status:
Not open for further replies.
  1. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    We are investigating adding the ability to bias/weight the assignment of meshes to particles.
    The idea being to allow you to spawn more of some meshes, and less of others.

    To do this, we are adding a numerical field next to each mesh in the list, when activating the new Mesh Distribution setting in the Renderer module.

    The weightings are relative to each other, so a weighting on one mesh of 3, and a weighting of 1.5 on another mesh, means there will be approximately 2x as many of the first mesh.

    It will usually make sense to think of the weightings as a percentage chance, and make them add up 100, for example, but we don't need to place this restriction on how it is applied.

    It also comes with a script API: ParticleSystemRenderer.SetMeshWeightings.

    Grab the build from here:
    https://beta.unity3d.com/download/8a88eb243a37/public_download.html

    And let us know what you think here: https://forum.unity.com/threads/mesh-weighting-feedback.1088548/
     
    Archanor and karl_jones like this.
Thread Status:
Not open for further replies.