Skip to content

Godot:Plugins

Troubleshooting

There seems to be an error in the code, please check the syntax

Project Settings 의 Plugins 탭에서 플러그인을 Enable 상태로 전환하려고 클릭할 시 다음과 같은 에러가 발생된다.

Unable to load addon script from path: 'res://addons/MusicXmlResource/MusicXmlResource.cs' There seems to be an error in the code, please check the syntax

C#을 사용한다면 프로젝트를 빌드해야 한다.

Script is not in tool mode

Project Settings 의 Plugins 탭에서 플러그인을 Enable 상태로 전환하려고 클릭할 시 다음과 같은 에러가 발생된다.

Unable to load addon script from path: 'res://addons/MusicXmlResource/MusicXmlResource.cs' Script is not in tool mode

C#을 사용한다면 해당 스크립트에 [Tool] Attribute 추가해야 한다.

#if TOOLS
using Godot;
using System;

[Tool]
public class CustomNode : EditorPlugin
{
    public override void _EnterTree()
    {
        // Initialization of the plugin goes here.
    }

    public override void _ExitTree()
    {
        // Clean-up of the plugin goes here.
    }
}
#endif

See also