Godot Version
v4.4.stable.official.4c311cbee
Question
How to drag a scene to another scene’s exported variable?
Explanation: I have three scenes: passenger
, seat
and vehicle
, the passenger
scene’s script has an exported variable parent_seat
:
class_name Passenger extends Node3D
@export var parent_seat: Seat
class_name Seat extends Node3D
The vehicle
scene has some seat
scene instances:
Now, in the passenger
scene, I want to drag a value for parent_seat
from vehicle
scene pictured above:
But, when I switch to vehicle
scene to drag the seat
value, the Inspector switches back to vehicle
(seems logical), hiding the parent_seat
value from the passenger
.
There is no way, to assign the parent_seat
value by dragging it around from the vehicle
and all copying options not working in this case.
I’m sure, I’m missing something important, but what it is?