Hello i need help pls how change Texture2D Shader Graph with script my sript is
PlayerMaterial.mainTexture = picturePlayer1;
Hello i need help pls how change Texture2D Shader Graph with script my sript is
PlayerMaterial.mainTexture = picturePlayer1;
You can look at this thread: Change GameObject Texture by script
Or add this code to your game object that you want to change texture:
gameObject.GetComponent<Renderer>().material.SetTexture("_myTexture", newTextureVariable);