Explorar o código

Fix ROS2 Project Template (#790)

* Fix templated DemoLevel prefab by restoring concrete component name to templated component name
* Replace autoexec.cfg with load_level.setreg
* Bump revision number

Signed-off-by: Steve Pham <[email protected]>
Steve Pham hai 10 meses
pai
achega
a900b1bb54

+ 1 - 1
Templates/Ros2ProjectTemplate/Template/Levels/DemoLevel/DemoLevel.prefab

@@ -268,7 +268,7 @@
                     "$type": "GenericComponentWrapper",
                     "$type": "GenericComponentWrapper",
                     "Id": 2318932367744128274,
                     "Id": 2318932367744128274,
                     "m_template": {
                     "m_template": {
-                        "$type": "R2PTSampleComponent",
+                        "$type": "${SanitizedCppName}SampleComponent",
                         "goals": [
                         "goals": [
                             "Entity_[549827034797]",
                             "Entity_[549827034797]",
                             "Entity_[545532067501]"
                             "Entity_[545532067501]"

+ 9 - 0
Templates/Ros2ProjectTemplate/Template/Registry/load_level.setreg

@@ -0,0 +1,9 @@
+{
+   "O3DE": {
+        "Autoexec": {
+            "ConsoleCommands": {
+                "LoadLevel": "demolevel"
+            }
+        }
+    }
+}

+ 0 - 1
Templates/Ros2ProjectTemplate/Template/autoexec.cfg

@@ -1 +0,0 @@
-LoadLevel levels/demolevel/demolevel.spawnable