|
@@ -28,12 +28,12 @@
|
|
// This sample changes all node names.
|
|
// This sample changes all node names.
|
|
// Called right after the scene is imported and gets the root node.
|
|
// Called right after the scene is imported and gets the root node.
|
|
[Tool]
|
|
[Tool]
|
|
- public class NodeRenamer : EditorScenePostImport
|
|
|
|
|
|
+ public partial class NodeRenamer : EditorScenePostImport
|
|
{
|
|
{
|
|
- public override Object PostImport(Object scene)
|
|
|
|
|
|
+ public override Object _PostImport(Node scene)
|
|
{
|
|
{
|
|
// Change all node names to "modified_[oldnodename]"
|
|
// Change all node names to "modified_[oldnodename]"
|
|
- Iterate(scene as Node);
|
|
|
|
|
|
+ Iterate(scene);
|
|
return scene; // Remember to return the imported scene
|
|
return scene; // Remember to return the imported scene
|
|
}
|
|
}
|
|
public void Iterate(Node node)
|
|
public void Iterate(Node node)
|