mirror of https://github.com/godotengine/godot.git
Merge pull request #91364 from vnen/gdscript-implicit-ready-base-first
GDScript: Call implicit ready on base script firstpull/82965/merge
commit
a7029e4c8a
@ -0,0 +1,18 @@
|
|||||||
|
#GH-63329
|
||||||
|
class A extends Node:
|
||||||
|
@onready var a := get_value("a")
|
||||||
|
|
||||||
|
func get_value(var_name: String) -> String:
|
||||||
|
print(var_name)
|
||||||
|
return var_name
|
||||||
|
|
||||||
|
class B extends A:
|
||||||
|
@onready var b := get_value("b")
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
pass
|
||||||
|
|
||||||
|
func test():
|
||||||
|
var node := B.new()
|
||||||
|
node._ready()
|
||||||
|
node.free()
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
GDTEST_OK
|
||||||
|
a
|
||||||
|
b
|
||||||
Loading…
Reference in New Issue