URP Simple Lit Error

Shanmukh

Member
when i set ground material as URP "simple lit" shader then get this error.
it working fine with the "lit" shader.

Material doesn't have a texture property '_BaseColor'
UnityEngine.Material:get_mainTexture()
Opsive.UltimateCharacterController.SurfaceSystem.SurfaceManager:GetMainTexture(Collider) (at Assets/Opsive/UltimateCharacterController/Scripts/SurfaceSystem/SurfaceManager.cs:492)
Opsive.UltimateCharacterController.SurfaceSystem.SurfaceManager:GetSimpleSurfaceType(Collider) (at Assets/Opsive/UltimateCharacterController/Scripts/SurfaceSystem/SurfaceManager.cs:378)
Opsive.UltimateCharacterController.SurfaceSystem.SurfaceManager:GetSurfaceType(RaycastHit, Collider) (at Assets/Opsive/UltimateCharacterController/Scripts/SurfaceSystem/SurfaceManager.cs:309)
Opsive.UltimateCharacterController.SurfaceSystem.SurfaceManager:GetSurfaceEffect(RaycastHit, Collider, SurfaceImpact, SurfaceType&, Boolean&) (at Assets/Opsive/UltimateCharacterController/Scripts/SurfaceSystem/SurfaceManager.cs:287)
Opsive.UltimateCharacterController.SurfaceSystem.SurfaceManager:SpawnEffectInternal(RaycastHit, Collider, SurfaceImpact, Vector3, Single, GameObject, Vector3, Boolean) (at Assets/Opsive/UltimateCharacterController/Scripts/SurfaceSystem/SurfaceManager.cs:261)
Opsive.UltimateCharacterController.SurfaceSystem.SurfaceManager:SpawnEffect(RaycastHit, SurfaceImpact, Vector3, Single, GameObject, Vector3, Boolean) (at Assets/Opsive/UltimateCharacterController/Scripts/SurfaceSystem/SurfaceManager.cs:225)
Opsive.UltimateCharacterController.Character.CharacterFootEffects:FootStep(Transform, Boolean) (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterFootEffects.cs:416)
Opsive.UltimateCharacterController.Character.CharacterFootEffects:DetectBodyStep() (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterFootEffects.cs:343)
Opsive.UltimateCharacterController.Character.CharacterFootEffects:FixedUpdate() (at Assets/Opsive/UltimateCharacterController/Scripts/Character/CharacterFootEffects.cs:322)
 
It looks like I need to expose the material type for the surface manager as well. I'll include this in the next update.
 
Top