You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LittleManComputer/LMC/Library/PackageCache/com.unity.ugui@1.0.0/Documentation~/script-Physics2DRaycaster.md

15 lines
747 B
Markdown

1 year ago
# Physics 2D Raycaster
The 2D Raycaster raycasts against 2D objects in the scene. This allows messages to be sent to 2D physics objects that implement event interfaces. The Camera GameObject needs to be used and will be added to the GameObject if the Physics 3D Raycaster is not added to the Camera GameObject.
For more Raycaster information see [Raycasters](Raycasters.md).
## Properties
|**_Property:_** |**_Function:_** |
|:---|:---|
|__Event Camera__ | The camera that will generate rays for this raycaster. |
|__Priority__ | Priority of the caster relative to other casters. |
|__Sort Order Priority__ | Priority of the raycaster based upon sort order. |
|__Render Order Priority__ | Priority of the raycaster based upon render order. |