unity main texture not working
//Get object renderer
rend = GetComponent<MeshRenderer>();
//deprecated do not use
rend.material.maintexture = newTexture;
//proper method
rend.material.SetTexture("_BaseMap",newTexture);
Also in C#:
- go to next itiration in foreach C#
- see if two string arrays are equal c#
- unity particle system color
- how to declare a string c#
- c# get current directory xamarin
- C# .net core convert int to enum
- how to make a pause feautre in unity
- unity line renderer position count
- value is null to insert in c#
- C# loop through array of objet
- while loop c#
- load scene unity
- vb.net check if datatable has rows
- .sh script: check if file exist
- delay in unity
- rotatearound unity
- c# arraylist to listview
- singleton unity
- uwp roaming data sample
- native-googlesignin configuration is null!?
- out parameters c#
- c# string
- array c#
- How to execute script in C#