mob-sakai / ParticleEffectForUGUI

Render particle effect in UnityUI(uGUI). Maskable, sortable, and no extra Camera/RenderTexture/Canvas.
MIT License
4.22k stars 616 forks source link

How to use with "CartoonFxRemasterFree" #324

Open Hdongyeop opened 1 month ago

Hdongyeop commented 1 month ago

NOTE: Your issue may already be reported! Please search on the issue tracker before creating one.

Describe what help do you need Hello, I want to use particle systems in this asset(https://assetstore.unity.com/packages/vfx/particles/cartoon-fx-remaster-free-109565). I drag a FX prefabs into canvas in hierarchy, right click - prefab - Unpack Completely and add component UI Particle. and then I pressed fresh button in component. it looks good in scene view. but in game view it seems black. I think it happened because the particle system had a complex shader. But I saw you used this Cartoon FX in demo. so I'm wandering how to use.

Additional context Question_UGUI

you can see all particles rendered black.

mob-sakai commented 1 month ago

Thank you for your reporting!

mob-sakai commented 1 month ago

Unfortunately, the demo contains an old version of CartoonFx (currently not available in the Asset Store). As you mentioned, CartoonFxRemasterFree uses complex shaders (CFXR Particle Ubershader.cfxrshader, etc.). Setting Canvas.renderMode=ScreenSpaceCamera would support some prefabs.

mob-sakai commented 3 weeks ago

If you do not use these shaders outside of UIParticles, you can use them by following the steps below:

  1. comment out the whole “Shader Caster” path
  2. add ZTest Always to the “Base” path
  3. Set TexCoord1 and TexCoord2 to Canvas.additionalShaderChannels