Stuck on OnDrawGizmos()

Forums 💬 FlowCanvas ⚙️ Support Stuck on OnDrawGizmos()

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12388
    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[i], 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

      #12391
      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 🙂

        #12390
        spayke
        Participant

          it is working, thank you

          #12389
          Gavalakis
          Keymaster

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

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