Skip to content

t1k:unity:rendering:animation-vfx

FieldValue
Modulerendering
Version5.39.1
Effortmedium
Tools—

Keywords: animation, VFX, visual effects

/t1k:unity:rendering:animation-vfx

  • Setting up Animator controllers and state machines
  • Creating UI animations and tween sequences
  • Optimizing particle systems for mobile
  • Integrating Spine or 2D skeletal animation
  • VFX pooling and lifecycle management
TaskReference
Animator, blend trees, layers, masksAnimator System (references/animator-system.md)
Tween sequences, easing, asyncDOTween Patterns (references/dotween-patterns.md)
Particle systems, mobile VFX, GPU particlesParticles & VFX (references/particles-vfx.md)

Note: Shader Graph patterns → see t1k-unity-rendering-shader-graph skill. Camera/post-processing → see t1k-unity-rendering-urp skill.

  1. LitMotion for this project — DOTS-AI uses LitMotion; DOTween patterns apply to MonoBehaviour-only projects
  2. Animator for skeletal — Character animation, complex state machines
  3. Kill tweens on destroy — Always transform.DOKill() / LitMotion dispose in OnDestroy
  4. Particle budgets — Max 50 particles/system, max 5 active systems on low-end
  5. Pool particle systems — Never Instantiate/Destroy VFX at runtime

DOTween Service (MonoBehaviour projects only)

Section titled “DOTween Service (MonoBehaviour projects only)”
public sealed class TweenService
{
public Sequence FadeInPanel(CanvasGroup group, float duration = 0.3f)
{
group.alpha = 0f;
group.gameObject.SetActive(true);
return DOTween.Sequence()
.Append(group.DOFade(1f, duration).SetEase(Ease.OutQuad))
.Join(group.transform.DOScale(1f, duration).From(0.9f));
}
}
public sealed class VfxPool : IDisposable
{
readonly Dictionary<string, ObjectPool<ParticleSystem>> _pools = new();
public ParticleSystem Play(string vfxId, Vector3 position)
{
var ps = _pools[vfxId].Get();
ps.transform.position = position;
ps.Play();
return ps;
}
}
  • Animator state hash vs string: Animator.Play("StateName") allocates; use Animator.Play(Animator.StringToHash("StateName")) and cache the hash
  • Particle prewarm on mobile: ParticleSystem.Prewarm simulates the full system on enable — causes frame spikes on low-end devices. Disable prewarm and let particles build naturally
  • VFX Graph requires compute shaders: VFX Graph does not work on devices without compute shader support (older Android, WebGL). Fall back to ParticleSystem for broad compatibility
  • t1k-unity-rendering-shader-graph — Shader Graph, material effects, SRP Batcher
  • t1k-unity-rendering-vfx-graph — GPU particle VFX Graph
  • t1k-unity-animation-litmotion — LitMotion tweening (this project’s tween library)
  • t1k-unity-ui-mobile-ui — UI animations, transitions
  • t1k-unity-base-game-patterns — Object pooling for VFX

A visible change made with this skill (UI, sprites, 3D, shaders, VFX, animation, lighting, scene layout; audio excluded) follows core rule visual-change-discord-notice:

  • Capture OLD before the first edit and NEW after the last (screen: ScreenCapture in Play mode per t1k-unity-editor-cli, windowed or Xvfb only because rendering is needed; 3D, shader, VFX: same-scene frame grab; 2D asset: the file).
  • Return the paths and a draft Discord post to the orchestrator, which posts; the PR links the post or carries visual-notice-waiver: <reason>. Logic only: “no visible change”. No capture: “screenshots pending: ”, never a fake image.