We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Enable and disable function

Home Forums General Questions Enable and disable function

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31991
    vivektrivedi478
    Customer

    Hi, i created a simple puzzle for scaling my object, and activate it by clicking on a particular object, but i don’t know how to disable this after scaling the object. 

    #31995

    Hi,

    you should separate these 2 events. When an object is clicked you might set a variable (like drag_enabled) to “true”, and check it inside dragging event.

    When dragging is over, set this variable to “false”.

    Chief 3D Verger | LinkedIn | Twitter

    #31999
    vivektrivedi478
    Customer

    tnaks

    #32013

    :good:

    Chief 3D Verger | LinkedIn | Twitter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.