Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[RELEASED] UI Particles

Discussion in 'Assets and Asset Store' started by Lex_Dudya, Oct 16, 2016.

  1. worldschild

    worldschild

    Joined:
    May 29, 2017
    Posts:
    5
    Hey, I have question regarding this plugin. Will it work for URP, someone told me it will not work at all for Universal Render Pipeline. Or will you do an update to make it work for URP?
     
  2. Lex_Dudya

    Lex_Dudya

    Joined:
    Feb 28, 2013
    Posts:
    29
    Hey. Yes, it works. Just use the latest version from assetstore (v 1.5) and shaders from the plugin (UI/Particles/...)
     
  3. worldschild

    worldschild

    Joined:
    May 29, 2017
    Posts:
    5
    I see there are was missing Canvas Renderer it wasn't generated automatically.
    Thanks a lot.
     
  4. sungchulparkod

    sungchulparkod

    Joined:
    Aug 2, 2021
    Posts:
    1
    Does this work well with HDRP?
     
  5. Ziplock9000

    Ziplock9000

    Joined:
    Jan 26, 2016
    Posts:
    360
    The links in the first post to the asset in the store and the author's website are dead?

    Any other solutions that work with URP + Screen Space - Overlay?
     
  6. fazli_unity

    fazli_unity

    Joined:
    Nov 18, 2021
    Posts:
    3
    There is a bug in version 1.6 in which it gives the following error message when you quit the application or wait while you show the particles:
    "A Native Collection has not been disposed, resulting in a memory leak"

    It appears that when you allocate new indices array you also have to dispose the old ones. We've solved it with modifying this method in UiParticles.cs

    Code (CSharp):
    1.             public void SetIndicesCount(int indCount)
    2.             {
    3.                 _indicesCount = indCount;
    4.                 var capacity = NextPow2(indCount);
    5.                 DisposeIndices();
    6.                 _indices = new NativeArray<ushort>(capacity, Allocator.Persistent);
    7.             }
    Unity Version : 2020.3.33f1
     
    zx0688 likes this.
  7. Lex_Dudya

    Lex_Dudya

    Joined:
    Feb 28, 2013
    Posts:
    29
    Thank you, for your report. I will make a release with a fix, in next two weeks.
     
    fazli_unity likes this.
  8. AliBuck

    AliBuck

    Joined:
    Aug 22, 2020
    Posts:
    30
    URP, particles are not displayed on Android. Tried every material... Canvas is Overlay and I cannot use other option

    Vulkan, Unity 2021.3.3

    EDIT. UI materials work. Found a small mention in the thread) Please mention it in the description =)
    Materials UI/Particles/...AnyMaterial...
     
    Last edited: Oct 2, 2022
  9. vasildx

    vasildx

    Joined:
    Jun 6, 2018
    Posts:
    2
    Unity 2022.1 everything works well, but we have a memory leaks. Can we fix this issue?

    A Native Collection has not been disposed, resulting in a memory leak. Allocated from:
    Unity.Collections.NativeArray`1:.ctor(Int32, Allocator, NativeArrayOptions) (at /Users/bokken/build/output/unity/unity/Runtime/Export/NativeArray/NativeArray.cs:57)
    .....

    To see full stacktrace, install com.unity.jobs preview package and use menu:
    Jobs > Leak Detection > Full Stack Traces (Expensive)
     
  10. AliBuck

    AliBuck

    Joined:
    Aug 22, 2020
    Posts:
    30
    Look a bit above to fazli_unity's post or search this page for "leak". It has been resolved.
     
  11. Ga2Z

    Ga2Z

    Joined:
    Feb 16, 2012
    Posts:
    67
    I have the exact same question. Does anybody know? Thanks!