Documentation

Unity Engine

Download Unity

Unity Engine

isTrigger

Whether the shape is a trigger, which generates overlap events but never generates a collision response.
Read time 1 minuteLast updated 17 hours ago

Definition

public bool isTrigger { readonly get; set; }

Remarks

A trigger only detects other shapes while its triggerEvents is enabled. Triggers do not collide with other triggers and do not have continuous collision, instead, use a ray or shape cast for those scenarios. Triggers still contribute to the body mass if they have non-zero density.