Canvas Group

NodeCanvas Forums Support Canvas Group

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12013
    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

    #12029
    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”.

    CanvasGroupAlpha

    Let me know if this works for you.
    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
    #12040
    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

    #12054
    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!

    Join us on Discord: https://discord.gg/97q2Rjh

    #12086
    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.