• Community
  • What is the default license for code shared within the Godot Forums?

Is there a default license (such as the MIT license) for code shared within these forums? For instance, if I need help with a function and a user submits code, could I incorporate that code into my project under the MIT license, or would I need to use it under a more restrictive license?

There’s no license beyond whatever the user sets it to. We do not force code posted on the forums to follow a license.

Understood, thanks. In that case, it sounds like I should ask the submitter of the code excerpt whether I could incorporate the code into my project under the MIT license?

    kburchfiel In that case, it sounds like I should ask the submitter of the code excerpt whether I could incorporate the code into my project under the MIT license?

    Yes.

    And even if someone posts some code and says it's 'this' license I'd take it with a grain of salt and try to do my due diligence double checking, they might have sourced some snippets from others with who knows what, if any license.

    Whatever the code is, Microsoft has probably already claimed it on a patent.

    Code shared without a license (or really anything you make) is considered copyrighted automatically. Unless it specifically states a license, it is not public domain because it is on a forum. However, in most cases, I doubt any random forum poster will sue you. Though it might be a good idea to PM the author and ask.