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

'with_component' missing from System (GDscript) #310

Open
Glitshy opened this issue Oct 3, 2023 · 0 comments
Open

'with_component' missing from System (GDscript) #310

Glitshy opened this issue Oct 3, 2023 · 0 comments

Comments

@Glitshy
Copy link

Glitshy commented Oct 3, 2023

I downloaded build #966 and tried to implement a new system, but the 'with_component' method doesn't exist:

extends System

func _prepare():
	with_component(ECS.TransformComponent, System.IMMUTABLE)

I get this error:

Function "with_component()" not found in base self.

The Godot editor shows me the following methods in the System class:

void _prepare() virtualvoidexecute_after(system_name: int)
voide xecute_before(system_name: int)
void execute_in(phase: Phase, dispatcher: int = 0xFFFFFFFF)
int get_system_id() const
void with_databag(databag_id: int, mutability: Mutability)
void with_events_emitter(event_id: int)
void with_events_receiver(event_id: int, emitter_name: String)
void with_query(query: Object)voidwith_storage(component_id: int)

Sorry if I am missing something extremely obvious, but it's supposed to be here, right?

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