Skip to main content
Cleanup
Source Link
DMGregory
  • 141k
  • 23
  • 258
  • 401

Godot 4 How to assign a Resource Array to a variable assigningin Godot 4?

In Godot 3, you could do this:

export var (Array, Resource) test_variable

I tried to recreate this in Godot 4, but I could not figure out how. This is what I tried:

@export var test_variable : (Array, Resource)

It does not work. How could I accomplish this in Godot 4?

Godot 4 Resource Array variable assigning

In Godot 3 you could do this:

export var (Array, Resource) test_variable

I tried to recreate this in Godot 4 but I could not figure out how. This is what I tried:

@export var test_variable : (Array, Resource)

It does not work. How could I accomplish this in Godot 4?

How to assign a Resource Array to a variable in Godot 4?

In Godot 3, you could do this:

export var (Array, Resource) test_variable

I tried to recreate this in Godot 4, but I could not figure out how. This is what I tried:

@export var test_variable : (Array, Resource)

It does not work. How could I accomplish this in Godot 4?

Source Link

Godot 4 Resource Array variable assigning

In Godot 3 you could do this:

export var (Array, Resource) test_variable

I tried to recreate this in Godot 4 but I could not figure out how. This is what I tried:

@export var test_variable : (Array, Resource)

It does not work. How could I accomplish this in Godot 4?