Fix EditorScenePostImport templates for C#
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user