Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
2
Question by RedDjinnPro · Jul 18, 2016 at 06:57 PM · beginnernavmeshagenttutorialloopingnot responding

Zombunny not properly responding

Ok so in short, I am working through the Survival Shooter Tutorial. When I apply the EnemyMovement Script to the Zombunny, the lil guy walks a few steps then hits an unseen obstacle and just loops his movement animation in place. Or perhaps someone has hit the same problem when cruzin through the tut?

Thanks so much for everyone's time!

PS I have ensured that my Player game object has been tagged as "Player".alt text

enemymovementscript.jpg (111.9 kB)
Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jessespike · Jul 19, 2016 at 06:10 PM 0
Share

did you bake a navmesh? any errors present in console?

avatar image RedDjinnPro Jessespike · Jul 19, 2016 at 08:03 PM 0
Share

@jessespike

Thank you so much for trying to help.

I baked the navmesh and the only message I received that seemed questionable is:

!NullReferenceException: Object reference not set to an instance of an object

But Im not certain this error appeared after or before the baking. I have since rebaked the navmesh, making overly certain that the settings in navigation before baking were what the tutorial called for but something is still not quite right.

Another note is that I am using the latest version of Unity and this tut is nearly two years old so some of the inspector settings arent in the same place (i.e. width and height accuracy settings)

avatar image Jessespike · Jul 19, 2016 at 09:05 PM 0
Share

It should work, there's not that many things that can go wrong here. Is the ground plane set to static? Are there multiple GameObjects tagged as player? Does that null ref exception show up if you clear console and then start play?

avatar image RedDjinnPro Jessespike · Jul 19, 2016 at 10:21 PM 0
Share

Thank you so much for that. This will help me tremendously moving forward... So the console shows the error every time the zombunny tries to move (that is to say, when the navmesh tries to move if im understanding this correctly as there are no physics being applied to the bunny itself) that error is definitely the problem. I have set the player tag to "Player" and I have left the bunny untagged. The environment is untagged as well and static.

The console error reads: !NullReferenceException: Object reference not set to an instance of an object CompleteProject.Enemy$$anonymous$$ovement.Update () (at Assets/_CompletedAssets/Scripts/Enemy/Enemy$$anonymous$$oveent.cs.27)

avatar image Jessespike · Jul 20, 2016 at 05:43 PM 0
Share

Does zombunny have a Nav$$anonymous$$eshAgent component? $$anonymous$$issing the component would cause that error.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by abhijeetjain04 · Aug 31, 2017 at 05:30 AM

For everyone who has this issue: "The enemy go towards the 0,0,0 point, then stops and do anything else.

That's because there's an issue with the FindGameObjectWithTag function. Try using GameObject.Find instead.

Its on YouTube video page, comments section. Thanks Pablo Dusi.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

64 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

I have starded the basic tutorial and got this bug. Cannot move further because of this. 0 Answers

UnassignedReferenceException: The variable agent of PlayerMovement has not been assigned 0 Answers

RogueLike 2D Tutorial Help 0 Answers

I need help with learning... 1 Answer

Can i move the camera\character in a VR game with my keyboard & mouse? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges