Tested some custom resources with a test scene.
This commit is contained in:
parent
4c512379c5
commit
1fd4a809f2
14 changed files with 125 additions and 4 deletions
10
resources/example_resource1.tres
Normal file
10
resources/example_resource1.tres
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[gd_resource type="Resource" script_class="ExampleResource" format=3 uid="uid://cy58t3vbkogtu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://0nsrno5ksdeh" path="res://scripts/ExampleResource.gd" id="1_aogvj"]
|
||||
[ext_resource type="Texture2D" uid="uid://deyu1prtitqcp" path="res://_graphics/Mini Pixel Pack 3/Enemies/Bon_Bon (16 x 16).png" id="2_xrkta"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_aogvj")
|
||||
speed = 5.0
|
||||
sprite = ExtResource("2_xrkta")
|
||||
metadata/_custom_type_script = "uid://0nsrno5ksdeh"
|
||||
Loading…
Add table
Add a link
Reference in a new issue