본문으로 바로가기
반응형





using UnityEngine;


[ExecuteInEditMode]

public class SetShadowResolution : MonoBehaviour

{  

     public int resolution = 4096;

     void Update() 

        {       

         GetComponent<Light>().shadowCustomResolution = resolution;  

        } 

}




반응형

'Technical Report > Unity Scripts' 카테고리의 다른 글

Demo script  (0) 2020.02.12
PCSS Light script  (0) 2019.09.15
Custom Material GUI  (0) 2019.08.14
Unity Custom tube, shere Light  (0) 2018.12.04
Custom Inspectors and Scriptable Objects for UDIM materials  (0) 2018.02.10