Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


raycasthit2d

This is an old revision of the document!


RaycastHit2D

Casts Implicitly To a Bool

RaycastHit2D implements the C# implicit bool operator. This allows it to be used in an if statement to check whether a hit is found.

Example:

raycasthit2d.1620233608.txt.gz · Last modified: 2021/05/05 16:53 by uninomiconadmin