Which Unity version are you using? Mono Develop hasn't been part of Unity for a few years now ...
Checked it on my end and works fine - which version of A* are you using?
Also, can you give me some details on the errors you're getting? You can copy them out of the Unity console.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I just did this not long ago, and if I remember correctly (and we're talking about the same script), I think you need to change the first 3 'AIPath' references to 'IAstarAI' (leave the AddComponent one as 'AIPath')
Checked it on my end and works fine - which version of A* are you using?
Also, can you give me some details on the errors you're getting? You can copy them out of the Unity console.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
unity 2020.3.25f1
and error is "the sript needs to derive monobehaviour"
public class MoveComponent : IMovementComponent
{
private Makinom_AstarAIPath_MovementComponentSetting setting;
private IAstarAI aiPath;
public MoveComponent(GameObject gameObject, Makinom_AstarAIPath_MovementComponentSetting setting)
{
this.setting = setting;
this.aiPath = gameObject.GetComponentInChildren<IAstarAI>();
if(this.aiPath == null)
{
this.aiPath = gameObject.GetComponentInParent<IAstarAI>();
}
if(this.aiPath == null &&
this.setting.compAdd)
{
this.aiPath = gameObject.AddComponent<AIPath>();
}
}
no errors rn
As far as I know, it only shows up in Base/Control > Game Controls > 'Move To Interaction'
and in Ork Combatants' Movement Component Settings.