Skip to content

TransformGesture stops working when disabling and then re-enabling a world canvas #203

Closed

Description

Activity

  1. valyard commented on Jan 18, 2016

    @valyard
    Contributor

    It seems that you don't have an UILayer set up like this
    2016-01-18 04-24-53 2 unity - touchscriptwin7test - pc mac linux standalone opengl 4 1
    I tried disabling and enabling canvases and TransformGesture seemed to be working.

  2. dinkeytomltd commented on Jan 18, 2016

    @dinkeytomltd
    Author

    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

  3. valyard commented on Jan 18, 2016

    @valyard
    Contributor

    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.

  4. dinkeytomltd commented on Jan 18, 2016

    @dinkeytomltd
    Author

    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.

  5. valyard commented on Jan 18, 2016

    @valyard
    Contributor

    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.

  6. valyard commented on Jan 19, 2016

    @valyard
    Contributor

    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.

  7. valyard commented on Jan 22, 2016

    @valyard
    Contributor

    Can you try your project with these fixes?
    https://github.com/TouchScript/TouchScript/tree/dev-8.0

  8. valyard commented on Jan 22, 2016

    @valyard
    Contributor

    @dinkeytomltd so, it works?

  9. dinkeytomltd commented on Jan 22, 2016

    @dinkeytomltd
    Author

    Yes, it works

  10. dinkeytomltd commented on Jan 24, 2016

    @dinkeytomltd
    Author

    It seems to block the ScreenScaleGesture.

  11. valyard commented on Jan 25, 2016

    @valyard
    Contributor

    Is this reproducible with the same project?

  12. dinkeytomltd commented on Jan 25, 2016

    @dinkeytomltd
    Author

    Yes, it the same project

  13. dinkeytomltd commented on Jan 25, 2016

    @dinkeytomltd
    Author

    Although when I import an earlier scene, it seems to work properly.

  14. valyard commented on Jan 25, 2016

    @valyard
    Contributor

    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.

  15. dinkeytomltd commented on Jan 25, 2016

    @dinkeytomltd
    Author
  16. valyard commented on Jan 25, 2016

    @valyard
    Contributor

    Seems to work fine. What do I do to break it?

  17. dinkeytomltd commented on Jan 25, 2016

    @dinkeytomltd
    Author

    I don't know. It must be something to do with my Editor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions