Stuck on OnDrawGizmos()

FlowCanvas Forums Support Stuck on OnDrawGizmos()

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2852
    spayke
    Participant

    Hello, i’m stuck in OnDrawGizmos()

    i want replicate code below in flowcanvas:

    private void OnDrawGizmos(){

    for(int i = 0; i < points.Length; i++){

    Gizmos.color = Color.green;

    Gizmos.DrawWireSphere(points, 0.5f);

    }

    }

     

    but can’t find OnDrawGizmos() event,

    i tried to create custom node by documentation, but get bunch of errors, for non programmer this part of documantation(custom nodes) hard to understand(what “using” need to add, and should i bind script to gameobject, video tutorial would be great),

    i have small coding knowledge, please explain how to solve this like i’m 10 years old

    unity: 2019.4.16f1 | flowcanvas: 3.1.6

    #2853
    Gavalakis
    Keymaster

    Hello there 🙂

    I have just added a DrawGizmo event node and have attached for you here the node as well as another required file modification. Once you import the packages you will be able to see and add the node “Events/Objects/DrawGizmos”.
    Please note however that to be able to call Gizmo methods/functions, you will also need to add the type named “Gizmo” to the Preferred Types Editor. Once you do that you will be able to see and add Gizmo functions under the “Functions/Reflection/Gizmo” category in the node browser.

    Let me know if the above works for you 🙂

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

    Attachments:
    You must be logged in to view attached files.
    #2856
    spayke
    Participant

    it is working, thank you

    #2857
    Gavalakis
    Keymaster

    You are very welcome and I am glad it works for you 🙂
    Happy new year!

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

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