hit testing! how to suppress Input events in Unity?
Posted: 08 Apr 2014, 01:57
working on the evaluation still...
I have a Button, and behind it is a collider with OnMouseDrag() OnMouseUp(), etc. How do I prevent the OnMouse* methods from running, if the player clicked or dragged on the button, for instance?
I have read the docs and searched the forums. I learned there is an example of HitTest() here,
http://www.noesisengine.com/docs/Gui.Co ... orial.html
But that's C++ code and I have no idea what the code context is or what those variables are. Can you provide some examples of how to suppress input events from the Unity C# side of things?
HitTesting is pretty basic requirement that pretty much everyone is going to run into sooner or later. It seems like there should be some code in Samples/ having to do with Hit testing?
Also Your C# plugin does not seem to have any code comments (in visual studio- all the methods I have looked at don't have any inline documentation). Is there a reason for this? For example- I am trying to figure out how to use
VisualTreeHelper.HitTest(). But the parameters are Noesis.Visual, and Noesis.Point. No idea how to find or create the required parameters, to perform the test.
I have a Button, and behind it is a collider with OnMouseDrag() OnMouseUp(), etc. How do I prevent the OnMouse* methods from running, if the player clicked or dragged on the button, for instance?
I have read the docs and searched the forums. I learned there is an example of HitTest() here,
http://www.noesisengine.com/docs/Gui.Co ... orial.html
But that's C++ code and I have no idea what the code context is or what those variables are. Can you provide some examples of how to suppress input events from the Unity C# side of things?
HitTesting is pretty basic requirement that pretty much everyone is going to run into sooner or later. It seems like there should be some code in Samples/ having to do with Hit testing?
Also Your C# plugin does not seem to have any code comments (in visual studio- all the methods I have looked at don't have any inline documentation). Is there a reason for this? For example- I am trying to figure out how to use
VisualTreeHelper.HitTest(). But the parameters are Noesis.Visual, and Noesis.Point. No idea how to find or create the required parameters, to perform the test.