demo: update demos

This commit is contained in:
mob-sakai
2022-06-09 01:50:36 +09:00
parent 845365ee27
commit 52ae87f301
60 changed files with 47310 additions and 9473 deletions

View File

@@ -0,0 +1,33 @@
using UnityEngine;
namespace Coffee.UIExtensions.Demo
{
public class UIParticle_Demo_UIParticleController : MonoBehaviour
{
public Transform root;
public void UIParticle_MeshSharing(bool enabled)
{
foreach (var uip in root.GetComponentsInChildren<UIParticle>(true))
{
uip.meshSharing = enabled ? UIParticle.MeshSharing.Auto : UIParticle.MeshSharing.None;
}
}
public void UIParticle_RandomGroup(bool enabled)
{
foreach (var uip in root.GetComponentsInChildren<UIParticle>(true))
{
uip.groupMaxId = enabled ? 4 : 0;
}
}
public void UIParticle_Scale(float scale)
{
foreach (var uip in root.GetComponentsInChildren<UIParticle>(true))
{
uip.scale = scale;
}
}
}
}