Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeneratorScriptable cannot find classes (eg. ISensor implementations) outside CrashKonijn.Goap.GenTest #328

Open
Draco18s opened this issue Jan 21, 2025 · 0 comments

Comments

@Draco18s
Copy link

https://github.com/crashkonijn/GOAP/blob/master/Package/Runtime/CrashKonijn.Goap.Runtime/Scriptables/GeneratorScriptable.cs#L58

How to replicate:

public class IdleTargetSensor : LocalTargetSensorBase
{
	public override void Created() { }

	public override void Update() { }

	public override ITarget Sense(IActionReceiver agent, IComponentReference references, ITarget existingTarget)
	{
		return new PositionTarget(agent.Transform.parent.position);
	}
}

Image

As the sensor classes must be created by the developer as they cannot be autogenerated, and the documentation makes no reference to this namespace limitation (and in fact doesn't even use it), it is impossible to divine why sensors don't show up when checking for issues (not selectable via dropdown, etc).

@Draco18s Draco18s changed the title GeneratorScriptable cannot find classes (eg. ISensor implementations) outside CrashKonijn.Goap.Runtime GeneratorScriptable cannot find classes (eg. ISensor implementations) outside CrashKonijn.Goap.GenTest Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant