Canvas Group

Forums 💬 NodeCanvas ⚙️ Support Canvas Group

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17999
    anglo
    Participant

      I need to control the Alpha from the Canvas Group component. what is the best process to do this in Nodecanvas.
      Kind regards

      #18003
      Gavalakis
      Keymaster

        Hello,

        – You need to use the “Script Control/Set Property” action for that.
        – In the inspector of the “Set Property” action, click the box toggle next to “Self” to override the target agent.
        – Assign the Canvas Group gameobject you want to affect in the target field.
        – Click “Select Property” and in the popup menu, select the property you want to set. In this case “Canvas Group/Set Alpha”.

        [attachment file=”CanvasGroupAlpha.png”]

        Let me know if this works for you.
        Thanks!

        #18002
        anglo
        Participant

          Thanks for that. extremely powerful.
          Now, How do I change is overtime. In Playmaker you can use ‘Animate Float” to make the changes of that Float Var overtime and not just abruptly.
          Thanks in advance

          #18001
          Gavalakis
          Keymaster

            Hello,

            You can use the “Blackboard/SetFloat” action with it’s operation mode set to “Add” instead of “Set”. As such, ValueB will be added to ValueA overtime. Please note that this will be doe per-frame, not per-second (using deltaTime).
            For the next version, there will be an option to do this “Per Second”. If you need this now, I can send you the modified files required for this change.

            Thanks!

            #18000
            anglo
            Participant

              I am sorry, can you put an example. I can not make it work

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