Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Last active April 16, 2018 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/7179b8e9e2ae248e703b5063ef35097c to your computer and use it in GitHub Desktop.
Save tsubaki/7179b8e9e2ae248e703b5063ef35097c to your computer and use it in GitHub Desktop.
using UnityEngine;
public class SetShadowResoliution : MonoBehaviour {
public int resolution;
void Start () {
GetComponent<Light>().shadowCustomResolution = resolution;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment