Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by mwinteringham · Jun 14, 2012 at 01:04 PM · javascripteditoraiplugin

Importing A*Pathfinding plugin issue

Hi all,

I've been looking into pathfinding libraries to use in my game and I've decided to use Aron Granbergs A*Pathfinding library. I'm currently using the Free version to get to grips with it which can be found here:

http://www.arongranberg.com/unity/a-pathfinding/download/

Whilst I've had no issues with using it in freshly created test projects (I.E I have imported the package when the project is created) I am having issues getting the plugin to work when I import it into my main Project which has pre-existing work in there. Every time I import the package I get the following errors:

 Assets/AstarPathfindingEditor/Editor/AstarPathEditor.cs(335,43): error CS0117: `GUILayout' does not contain a definition for `Label'
  
 (Filename: Assets/AstarPathfindingEditor/Editor/AstarPathEditor.cs Line: 335)
 
 Assets/AstarPathfindingEditor/Editor/AstarPathEditor.cs(360,27): error CS0117: `GUILayout' does not contain a definition for `Space'
  
 (Filename: Assets/AstarPathfindingEditor/Editor/AstarPathEditor.cs Line: 360)
 
 Assets/AstarPathfindingEditor/Editor/AstarPathEditor.cs(362,31): error CS0117: `GUILayout' does not contain a definition for `Button'
  
 (Filename: Assets/AstarPathfindingEditor/Editor/AstarPathEditor.cs Line: 362)
 
 Assets/AstarPathfindingEditor/Editor/AstarPathEditor.cs(598,27): error CS0117: `GUILayout' does not contain a definition for `Label'
  
 (Filename: Assets/AstarPathfindingEditor/Editor/AstarPathEditor.cs Line: 598)


This is just a snippet of it but the error is the same regarding GUILayout not containing definitions. The errors mean the components aren't created for me to work with.

I've tried:

  • Iimporting the library into one project, then configuring it and copying it back into mine but that didn't work (didn't really expect it to)

  • Putting everything into a plugins folder. That removes the errors but when I create the PathFinder component I get:

    Instance of AstarPathEditor couldn't be created. The script class needs to derive from ScriptableObject and be placed in the Assets/Editor folder.

Moving the required files into an editor folder creates the original errors again.

Does anyone have any suggestions how to sort this?

I am using Javascript for all my other scripts. Could that be interfering?

Thanks, Mark

Comment
Add comment · Show 1
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 whydoidoit · Jun 14, 2012 at 01:05 PM 0
Share

Have you created something called GUILayout yourself? A script? A class?

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by mwinteringham · Jun 14, 2012 at 02:16 PM

Thanks whydoidoit,

It appears that I had created a GUILayout javascript file which it was attempting to access.

Comment
Add comment · Show 1 · 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
avatar image whydoidoit · Jun 14, 2012 at 02:17 PM 0
Share

It's a common one - got to watch that especially in JS as it sort of feels like you didn't create something :)

$$anonymous$$ark yourself as having answered this so it disappears from the list :)

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Can someone help me fix my Javascript for Flickering Light? 6 Answers

Setting Scroll View Width GUILayout 1 Answer

AI Waypoint help or suggestions!? 2 Answers

Checking name from hit from Raycast in array 2 Answers

Enemy arrows colliding with enemy. 2 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