how to change material in script unity
public Material Material1;
//in the editor this is what you would set as the object you wan't to change
public Renderer Object;
void Start()
{
Object.material = Material1;
}
how to change material in script unity
public Material Material1;
//in the editor this is what you would set as the object you wan't to change
public Renderer Object;
void Start()
{
Object.material = Material1;
}
change physics material unity
GetComponent<Collider>().material = physicMaterial;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us