You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TransformGesture stops working when disabling and then re-enabling a world canvas #203
I'm sorry, can you provide steps to reproduce the behavior you are talking about?
I see two photos with canvases in world space but the transform gesture which is moving everything is on Scene game object.
If you expand the 'Scene' gameobject and the 'Container' you will see that there are some World Space canvases. Press the lock icon next to the image and it should change to an unlock and that will enable it to be transformed, now select the 'Photo' in the hierarchy and disable and then enable the object. The buttons will be interactive, but the transform gesture will stop working. The same happens when you disable the container and then re-enable. However I've noticed that it still works when you move the 'Container' object outside of the 'Scene' object. So it seems to be a problem with putting a FullScreen Layer on a parent container.
I'm currently uploading a video of it.
It seems that in uploaded configuration UI elements don't get touches at all. Even lock button is not clickable. Seems to be something with layer ordering.
Right. I figured out what's wrong and it seems that I messed up big with one change in 7.0. The 3 gestures you have there in the hierarchy subscribe to FrameFinished event and whoever does it first will most likely trigger when you drag. If a gesture is disabled it unsubscribes and by subscribing later when enabled it becomes the last one in the list. It seems that I'll have to revert a big code change...
Accidentally I fixed another bug with layer order which I just uploaded as a part of version 7.1.
Are you sure you are using the latest TouchScript files?
If you still have the issue can you upload the new project and provide steps to reproduce please.
Activity
valyard commentedon Jan 18, 2016
It seems that you don't have an UILayer set up like this

I tried disabling and enabling canvases and TransformGesture seemed to be working.
dinkeytomltd commentedon Jan 18, 2016
I have the layer set up like that in my original project, but it's still not working for me when I disable and then enable or instance a WorldCanvas Object with Transform Gesture. The scene is 2.unity
https://drive.google.com/file/d/0BwAC6q7_gz1QZ1Y1bF96SnUzeE0/view?usp=sharing
valyard commentedon Jan 18, 2016
I'm sorry, can you provide steps to reproduce the behavior you are talking about?
I see two photos with canvases in world space but the transform gesture which is moving everything is on Scene game object.
dinkeytomltd commentedon Jan 18, 2016
If you expand the 'Scene' gameobject and the 'Container' you will see that there are some World Space canvases. Press the lock icon next to the image and it should change to an unlock and that will enable it to be transformed, now select the 'Photo' in the hierarchy and disable and then enable the object. The buttons will be interactive, but the transform gesture will stop working. The same happens when you disable the container and then re-enable. However I've noticed that it still works when you move the 'Container' object outside of the 'Scene' object. So it seems to be a problem with putting a FullScreen Layer on a parent container.
I'm currently uploading a video of it.
valyard commentedon Jan 18, 2016
It seems that in uploaded configuration UI elements don't get touches at all. Even lock button is not clickable. Seems to be something with layer ordering.
dinkeytomltd commentedon Jan 19, 2016
https://drive.google.com/file/d/0BwAC6q7_gz1QdHkwbTNPNUljQkU/view?usp=sharing
valyard commentedon Jan 19, 2016
Right. I figured out what's wrong and it seems that I messed up big with one change in 7.0. The 3 gestures you have there in the hierarchy subscribe to FrameFinished event and whoever does it first will most likely trigger when you drag. If a gesture is disabled it unsubscribes and by subscribing later when enabled it becomes the last one in the list. It seems that I'll have to revert a big code change...
Accidentally I fixed another bug with layer order which I just uploaded as a part of version 7.1.
Reverted lists of touches to TouchManager and GestureManager events. …
Returned update processing logic of TransformGestures to touchesUpdat…
valyard commentedon Jan 22, 2016
Can you try your project with these fixes?
https://github.com/TouchScript/TouchScript/tree/dev-8.0
valyard commentedon Jan 22, 2016
@dinkeytomltd so, it works?
dinkeytomltd commentedon Jan 22, 2016
Yes, it works
dinkeytomltd commentedon Jan 24, 2016
It seems to block the ScreenScaleGesture.
valyard commentedon Jan 25, 2016
Is this reproducible with the same project?
dinkeytomltd commentedon Jan 25, 2016
Yes, it the same project
dinkeytomltd commentedon Jan 25, 2016
Although when I import an earlier scene, it seems to work properly.
valyard commentedon Jan 25, 2016
Are you sure you are using the latest TouchScript files?
If you still have the issue can you upload the new project and provide steps to reproduce please.
dinkeytomltd commentedon Jan 25, 2016
Yes, I am using the latest files
https://drive.google.com/file/d/0BwAC6q7_gz1QOXMyMWZwTFBXWVE/view?usp=sharing
valyard commentedon Jan 25, 2016
Seems to work fine. What do I do to break it?
dinkeytomltd commentedon Jan 25, 2016
I don't know. It must be something to do with my Editor