21-01-2021, 03:40 AM
I tried using http://obi.virtualmethodstudio.com/tutor...sions.html, but I wanted to find an easier way.
So, I'm trying to contact using obicontacteventdispatcher.
(Enter/Stay/Exit) works satisfactorily and satisfactorily.
But what I want is to operate it when a particular collider touches it.
For example, typically in Unity,
private void OnTriggerEnter(Collider other)
{
if (other.gameObject.name == "testModel")
{
//func();
}
}
In this way, only objects named "testModel" can be contacted, but I tried many things using obicontacteventdispatcher, but I couldn't. Could you tell me how to contact only certain objects?
Thank you for your quick response.
So, I'm trying to contact using obicontacteventdispatcher.
(Enter/Stay/Exit) works satisfactorily and satisfactorily.
But what I want is to operate it when a particular collider touches it.
For example, typically in Unity,
private void OnTriggerEnter(Collider other)
{
if (other.gameObject.name == "testModel")
{
//func();
}
}
In this way, only objects named "testModel" can be contacted, but I tried many things using obicontacteventdispatcher, but I couldn't. Could you tell me how to contact only certain objects?
Thank you for your quick response.