how to detect for colision without any coliders

i am trying to make lava that you can swim in but i need to detect it still being able to go through

Hello.

Its a really basic question… I think you did not search on internet…

Colliders have the “trigger” option. You need use triggers and ontrigger functions.

All function of colliders, one for non-trigger, others for trigger mode.

I recommend 100% go youtube and watch some tutorials.

Bye.

OnCollisionEnter	OnCollisionEnter is called when this collider/rigidbody has begun touching another rigidbody/collider.

OnCollisionExit	OnCollisionExit is called when this collider/rigidbody has stopped touching another rigidbody/collider.

OnCollisionStay	OnCollisionStay is called once per frame for every Collider or Rigidbody that touches another Collider or Rigidbody.

OnTriggerEnter	When a GameObject collides with another GameObject, Unity calls OnTriggerEnter.

OnTriggerExit	OnTriggerExit is called when the Collider other has stopped touching the trigger.

OnTriggerStay	OnTriggerStay is called almost all the frames for every Collider other that is touching the trigger. The function is on the physics timer so it won't necessarily run every frame.