Comments (6)
No, this data is immutable in current architecture.
Are you trying to manually create touch points or change current ones?
If the first case just create a new Input like MouseInput for example.
from touchscript.
understand now ~ instead of inherit from TouchLayer ~ I changed to inherit from CameraLayer~
so I just need to override the Hit function.~ thanks
from touchscript.
Can you describe what you are trying to do? Maybe there's a better way.
from touchscript.
Im using MetaGestures to control my player character. But when the Monster overlapped on top of the player character. the MetaGestures touchBegin will not trigger. just because the Monster got the RayHit. I know HitTest can disable the monster to be selected. But a bit annoying if I need to set all Monster to have HitTest and set to false. Instead of that the easy way is try to RayHit to limited layer for example in my case just need to RayHit to player layer. That can help to fix the problem. Since your CameraLayer using RaycastAll and without setting the layerMask. I need to override the Hit method to implement my own Hit method by passing layerMask to Rasycast. so if you allow us to set the layerMask in the CameraLayer and pass to Raycast is more simple and direct. But for now override it also a solution.
from touchscript.
CameraLayers are placed on cameras.
What would be better in your approach to have a custom layerMask in CameraLayer or if CameraLayer inherited layerMask from Camera it uses?
from touchscript.
Added LayerMask to CameraLayer in 2.0.
from touchscript.
Related Issues (20)
- TouchScript does not work with IL2CPP HOT 1
- TapGesture.Tapped not working in Android
- Camera Control
- Initial touch down on UI Slider sets Slider.value to 0 HOT 1
- Scaling an object
- Tap Gesture Not Working on WebGL (mobile only)
- Update Old Hyperlinks in `Gestures` Wiki article
- Pointers not being removed/cancelled using TUIO input HOT 5
- Triggering overlapping colliders at the same time with one click?
- Pointer.GetOverData(false) return Wrong Target
- Unity Crashes when i click on the TouchManager prefab
- Touch Detection on Multi Display Window Application HOT 1
- I can't touch on surface pro 7
- TouchScript multiple displays with tuio HOT 2
- Transforming an object without the need to touch it beforehand HOT 1
- How to receive only the raw touches that land within an object? HOT 1
- out of virtual finger IDs
- TUIO Input extra poitner issues HOT 1
- Mac osx touchpad support
- The order of the layers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from touchscript.