Unity/VFX Graph (5) 썸네일형 리스트형 유나이트 서울 2020 - Unity Visual Effect Graph 활용을 위한 고급 팁 www.youtube.com/watch?v=b9QbRuvkvsI VisualEffect Document docs.unity3d.com/2018.3/Documentation/ScriptReference/Experimental.VFX.VisualEffect.html VFX Graph Properties 코드 접근 예제 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.VFX; public class ButterfilesPoint : MonoBehaviour { public VisualEffect visualEffect; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { visualEffect.SetFloat("Alpha", 1.0f); } } VFX Graph Master Sample Poject github.com/Unity-Technologies/VisualEffectGraph-Samples VFX Graph TimeScale using UnityEngine; using UnityEngine.VFX; public class AdjustVFXSpeed : MonoBehaviour { [SerializeField] float timeScale = 1.0f; [SerializeField] VisualEffect VFX; void Start() { VFX = GetComponent(); } void Update() { VFX.playRate = timeScale; } } 이전 1 다음