Hey,
I have a project. There is an unit with AILerp script which I am accessing from another script.
self.GetComponent(AILerp).enabled = false;
After upgrading, somehow I am getting Error: Unknown Identifier: ‘AILerp’
The method and script have remained unchanged. What change has caused this?
I am also noticing that the method can access every other script component in the unit, but not AILerp or Seeker (both of which are A* scripts).
Why are they inaccessible? The name is being correct with capitalization.
Many thanks.
Hi
It looks like you are using Unityscript.
Take a look at this page: https://arongranberg.com/astar/docs/javscript.html
Note that Unityscript is being phased out by Unity.
Thank you. I converted to JS mode.
But it did not remove the errors, and it brought a couple more in LegacyAIPathEditor: missing assembly reference and no suitable method to override.
Assets/Plugins/AstarPathfindingProject/Legacy/Editor/LegacyAIPathEditor.cs(6,36): error CS0246: The type or namespace name `BaseAIEditor’ could not be found. Are you missing an assembly reference?
Assets/Plugins/AstarPathfindingProject/Legacy/Editor/LegacyAIPathEditor.cs(7,27): error CS0115: `Pathfinding.Legacy.LegacyAIPathEditor.Inspector()’ is marked as an override but no suitable method found to override
I have decided to return my pathfinding Astar to an earlier version due to these errors in version upgrade.
Thank you for your help anyway. I really like the pathfinding system.