Horje
change object material unity Code Example
change object material unity
Material[] materials = meshRenderer.materials;
Material oldMaterial = materials[0];
Material[] newMaterials = new Material[] { SphereMaterial};
meshRenderer.materials = newMaterials;
change physics material unity
Collider coll = GetComponent<Collider>();
coll.material.dynamicFriction = dynFriction;
coll.material.staticFriction = statFriction;




Csharp

Related
create dropdown in datatable c# dynamically Code Example create dropdown in datatable c# dynamically Code Example
math.pow in C# using loop Code Example math.pow in C# using loop Code Example
c# list with 0 initialize Code Example c# list with 0 initialize Code Example
c# structure Code Example c# structure Code Example
c# int array length Code Example c# int array length Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7