summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-16 19:58:14 +0200
committerGitHub <noreply@github.com>2022-06-16 19:58:14 +0200
commit4df25f23f85276214b5aeb9427f0f2f0e3006c9b (patch)
tree4bb735c22bffeb196d4e78a6681aa42402cbba4d /modules/mono
parentf8d3388d9b349df7276c207df4e5c85ccd618c2a (diff)
parent525b5e0e16372923a571f4c024f53398798c2e95 (diff)
Merge pull request #62114 from raulsntos/EditorScenePostImport_templates
Fix EditorScenePostImport templates for C#
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/editor/script_templates/EditorScenePostImport/basic_import_script.cs8
-rw-r--r--modules/mono/editor/script_templates/EditorScenePostImport/no_comments.cs4
2 files changed, 5 insertions, 7 deletions
diff --git a/modules/mono/editor/script_templates/EditorScenePostImport/basic_import_script.cs b/modules/mono/editor/script_templates/EditorScenePostImport/basic_import_script.cs
index 0690205d01..9e1b7ef580 100644
--- a/modules/mono/editor/script_templates/EditorScenePostImport/basic_import_script.cs
+++ b/modules/mono/editor/script_templates/EditorScenePostImport/basic_import_script.cs
@@ -7,12 +7,10 @@ using System;
[Tool]
public partial class _CLASS_ : _BASE_
{
- public override Object _PostImport(Node scene)
+ public override Godot.Object _PostImport(Node scene)
{
- // Modify the contents of the scene upon import. For example, setting up LODs:
-// scene.GetNode<MeshInstance3D>("HighPolyMesh").DrawDistanceEnd = 5.0
-// scene.GetNode<MeshInstance3D>("LowPolyMesh").DrawDistanceBegin = 5.0
- return scene // Return the modified root node when you're done.
+ // Modify the contents of the scene upon import.
+ return scene; // Return the modified root node when you're done.
}
}
#endif
diff --git a/modules/mono/editor/script_templates/EditorScenePostImport/no_comments.cs b/modules/mono/editor/script_templates/EditorScenePostImport/no_comments.cs
index 4e2d9b7088..bf2c9434e4 100644
--- a/modules/mono/editor/script_templates/EditorScenePostImport/no_comments.cs
+++ b/modules/mono/editor/script_templates/EditorScenePostImport/no_comments.cs
@@ -7,9 +7,9 @@ using System;
[Tool]
public partial class _CLASS_ : _BASE_
{
- public override Object _PostImport(Node scene)
+ public override Godot.Object _PostImport(Node scene)
{
- return scene
+ return scene;
}
}
#endif