i have used this code
void onTriggerEnter(Collider other)
{
print(“player triggered something”);
}
but nothing pops up in the console
My isKinematic and isTrigger is on and i also have placed box collider on the ships and terrain collider
i have used this code
void onTriggerEnter(Collider other)
{
print(“player triggered something”);
}
but nothing pops up in the console
My isKinematic and isTrigger is on and i also have placed box collider on the ships and terrain collider
Hi Suman,
Please check the spelling of the method. In C#, method names usually start with a capital character.
See also:
Oh my god i have been looking for my mistake for so long and this is what i did wrong sorry for the silly question and thank you
Don’t worry. It was not a silly question at all. Those typos are very common, so it is good that you made this mistake. Next time, you’ll know what you could check first.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.