Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

gameObject to be Instantiated with Navigation Static [x] and non-walkable checked in Navigation.

Discussion in 'Navigation' started by BooberSmack, Apr 7, 2017.

  1. BooberSmack

    BooberSmack

    Joined:
    Dec 16, 2016
    Posts:
    5
    I would suspect it to be possible to set an objects navigation parameters through script.
    Say,
    GameObject Blabber = Instantiate(BlahPF, BlahPos, Quaternion.identity) as GameObject;
    Blabber.Somehow.withMagic.setNavigation(nonWalkable)=true;

    There's got to be a workaround for having to go to the Navigation Editor...
     
  2. Jakob_Unity

    Jakob_Unity

    Joined:
    Dec 25, 2011
    Posts:
    269
  3. BooberSmack

    BooberSmack

    Joined:
    Dec 16, 2016
    Posts:
    5