Closed gsm041039 closed 3 years ago
You can obtain a reference to the Blit feature by using a global field that you can set in the inspector.
public class Example : MonoBehaviour {
public Blit blit;
public Material newMaterial;
public void Start() {
blit.SetActive(true);
blit.settings.blitMaterial = newMaterial;
}
}
Hi, this feature is working fine on my project :)
but I want to ask if there have a way to change blit material in run time through script? I am not familiar with scriptable render pipeline and I can't find any useful information about it.
It will be a big thanks if you can tell me about it!