본문 바로가기

Unity/VFX Graph

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);
    }
}

'Unity > VFX Graph' 카테고리의 다른 글

유나이트 서울 2020 - Unity Visual Effect Graph 활용을 위한 고급 팁  (0) 2020.12.16
VisualEffect Document  (0) 2020.12.01
VFX Graph Master Sample Poject  (0) 2020.11.09
VFX Graph TimeScale  (0) 2020.10.20