2d compatibility/unity 2d

NodeCanvas Forums General Discussion 2d compatibility/unity 2d

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #10442

    Will nodeCanvas work in Unity 2D? Any help is greatly appreciated.

    #10447
    Gavalakis
    Keymaster

    Hello,

    Yes, NodeCanvas works fine with Unity2D and there are even actions/conditions included related to Unity2D.
    Let me know if you have any other questions.

    Thanks

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

    #10550

    I am really enjoying nodeCanvas! I need help with a navmesh for 2D. I cannot get the AI sprites to moveTowards or findTarget.

    #10554
    Gavalakis
    Keymaster

    Hello,

    Thanks! Unfortunately, Unity’s native NavMesh system does not support 2D games. There is nothing I can really do to make the native NavMesh work with 2D games cause it’s totaly up to Unity’s implementation. You will probably need to get a plugin for 2D pathfinding from the asset store for that, like for example PolyNav: http://u3d.as/6n3 which is also supported by NodeCanvas. (sorry for the shameless promotion :))

    Once again, it’s simply a restriction of Unity, unless I misunderstood the question completely.

    Let me know,
    Thanks!

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

    #10556

    I figured that was going to be the solution. NavMesh 2D has depreciated. I will definitely check out the asset. Thank you for the support. I think a string/discussion about 2D might help someone in the community. I find nodeCanvas extremely useful in my game design and structure. I have been developing in Unity for three years and I feel like since I have been using nodeCanvas, my game structure is much more professional and fine tuned.Kudos. I am learning more and more everyday in the manual.

    Attachments:
    You must be logged in to view attached files.
    #10562
    Gavalakis
    Keymaster

    Thank you very much!
    I am very glad to hear that you find NodeCanvas usefull in your projects 🙂
    Comments like yours really keep the project going.

    Thanks again

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

    #10564

    I did purchase the PolyNav asset. It works as expected, and better. This has really opened up many options for my design. I truly believe that any serious developer can benefit from the prototyping and getting right on the first or second try. Kudos!

    #10568
    Gavalakis
    Keymaster

    Thank you!
    I am really glad you enjoy PolyNav 🙂 Thanks!

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

    #10570

    Hello,
    Is there a way to flip( or face direction) the sprite or Poly Nav Agent to look at object Player? Thank You.

    Attachments:
    You must be logged in to view attached files.
    #10575
    Gavalakis
    Keymaster

    Hello,

    Here is a script to do that. I’ve added more cases so you can do extra stuff when the direction change. Just add it on your sprite gameobject and set the PolyNavAgent reference.

    Let me know if this works for you.
    Cheers!

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

    #10579

    Yes, this code did the trick, very cleanly. Your support is spot on. I thank you for your time.

    #10586
    Gavalakis
    Keymaster

    You are very welcome 🙂
    Thanks as well!

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

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