-
-
Save LMHPoly/15349c3bae1e546d0b333e600e970dfa to your computer and use it in GitHub Desktop.
EmissionControl.cs (Enable Emission after 3 seconds every frame)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class EmissionControl : MonoBehaviour { | |
public Material material; | |
void Awake () { | |
material.DisableKeyword ("_EMISSION"); | |
} | |
void Update () { | |
if(Time.time >= 3.0f){ | |
material.EnableKeyword ("_EMISSION"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment