Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

ontriggerenter2d not working

Unity Monobehavior Lifecycle methods start with a capital and C# methods are case-sensitive.
Therefore, the following methods need to be corrected to be used by Unity:
onTriggerEnter2D => OnTriggerEnter2D
 
PREVIOUS NEXT
Tagged: #working
ADD COMMENT
Topic
Name
2+3 =