- AvatarOutfitController: 의상 변경 시 NiloToon renderCharacter 토글 + VFX/SFX/컬러 플래시 연출 - TransformEffectPreset ScriptableObject 로 프리셋 공유 - 아바타별 isTransforming 플래그로 동시 변신 지원 - 의상 리스트 순서 변경 (▲▼) 기능 - Piloto Studio 파티클 번들 추가 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
1.2 KiB
C#
30 lines
1.2 KiB
C#
using UnityEngine;
|
|
|
|
namespace Streamingle.Effects
|
|
{
|
|
/// <summary>
|
|
/// 변신 연출 프리셋. VFX 프리팹/SFX 클립/컬러 플래시 파라미터처럼 재사용 가능한 설정을 담는다.
|
|
/// 씬 종속 참조(앵커 Transform, AudioSource) 는 각 OutfitData.transformEffect 에서 개별 지정.
|
|
/// Assets > Create > Streamingle > Transform Effect Preset 으로 생성.
|
|
/// </summary>
|
|
[CreateAssetMenu(fileName = "TransformEffectPreset", menuName = "Streamingle/Transform Effect Preset", order = 400)]
|
|
public class TransformEffectPreset : ScriptableObject
|
|
{
|
|
[Header("VFX")]
|
|
[Tooltip("변신 순간 스폰할 파티클 프리팹 (예: Light Of Rebirth.prefab)")]
|
|
public GameObject vfxPrefab;
|
|
[Min(0f)] public float vfxLifetime = 3f;
|
|
|
|
[Header("SFX")]
|
|
public AudioClip sfxClip;
|
|
[Range(0f, 1f)] public float sfxVolume = 1f;
|
|
|
|
[Header("Color Flash (perCharacterLerp)")]
|
|
public bool useColorFlash = true;
|
|
[ColorUsage(false, true)] public Color flashColor = Color.white;
|
|
[Range(0f, 1f)] public float flashIntensity = 1f;
|
|
[Min(0f)] public float flashInDuration = 0.35f;
|
|
[Min(0f)] public float flashOutDuration = 0.5f;
|
|
}
|
|
}
|