How to Apply Roughness Texture in Unity?

When downloading some models including textures, all of them have a Roughness Image. But, you can’t read in the Image how big the Roughness (or Smoothness) is, so actually don’t know how big the Smoothness value should be that the model looks perfect. The solution to the problem First of all, Unity uses smoothness, which …

Read more

How to Apply Materials to Faces in Unity?

If you would like to apply texture to a simple cube in Unity, but you don’t want to apply the texture to all of the faces. When apply the texture to the cube’s material, it apply the same texture to all of the faces and on some of the faces the texture is upside down. The solution to …

Read more

How to do collision detection in Unity between Character Controller, Rigidbody Collider, and a NavmeshAgent?

How to detect a collision between NavmeshAgent and a CharacterController? Have added a sphere collider to my NavmeshAgent, but it doesn’t seem to detect a collision unless set to “IsTrigger”. Have tried OnCollisionEnter(), OnControllerColliderHit(), and OnTriggerEnter(). OnTriggerEnter() seems to be the only one that works and only when I enable “IsTrigger”. The solution to the …

Read more

SetDestination can only be called on an active agent that is on a NavMesh

If you are trying to make that the enemy is following the player with a script and a NavMesh agent, but its not working and got this error: SetDestination” can only be called on an active agent that has been placed on a NavMesh.UnityEngine.AI.NavMeshAgent:SetDestination(Vector3) The solution to the problem In Unity, NavMesh is handled from …

Read more

How to Delete Edge or Vertex in Unity

When working on ProBuilder in Unity, you might can’t able to delete any vertices or edges with the backspace key. You might also can’t able to delete the edge loop. Not seeing this function on the ProBuilder window when switching to an element (edge/vertex model). But, face deleted is working fine. The solution to the …

Read more