License on code in forum posts

I’ve found some really useful code in the forum that creates an expandable attribute for Scriptable Objects. I’d like to use it in my project. However, I can’t seem to find any reference to the license for content in the forums.

I assume that this was covered in the terms I didn’t read when signing up to the forum :wink: but I can’t find those terms now.

Can anyone point me in the right direction?

Unless stated otherwise by the creator of it, you’re free to use it in your project.

Why not send a forum PM to the person who posted it and ask permission? That way you’ve gone the extra step to make sure you are covered for using the code.

That’s what I would hope, but unless it’s actually documented somewhere the lawyers won’t accept that. Does anyone know where the terms of use and licensing info for forum posts is?

There are a number of people who contributed code in the thread and to date three of them have not responded to PMs :frowning:

Check when they’ve last logged on (you can do this by clicking their name). If the thread is an old one it’s very likely that the posters no longer log onto the forums.

To my knowledge this isn’t covered by the terms of the forum nor would I expect it to be.

1 Like

Took me 30 seconds to find it via google.

You can use code from the forums just fine, no repercussions. If you couldn’t, the entire scripting forum would be shut down.

3 Likes

Ah cut and paste code projects

1 Like

You just read the title and posted, didn’t you? :stuck_out_tongue: I’m fairly certain they’re looking at the following code snippet and wanted to know what license it’s under. It’s a fairly good script if you use SOs a lot as it lets you expand them without defocusing the object you’re currently working with in the Inspector. Only downside is it’s a bit heavy on performance.

https://discussions.unity.com/t/671671/30

4 Likes

If you don’t wanna use pre-made code you’re on the wrong forum chief, you’d be best served by creating your own engine and graphics API.

1 Like

Nah, I ment taking code and trying to cut and paste togehterr a project

There is a difference reusing code for your domain or writing your own game engine. We even have one code asset in our game. But it’s alot different from cut and pasting togehter a game. I have never heard of that being a successful model

It would be useful, if you stick to the thread, rather than usual derailing. OP is clearly discussing script, not full project, if that matter at all. Also OP is learning. Consider tutorials as an example.

6 Likes

I’m not a lawyer, but I was curious myself so I did a deeper dive. If you could link to the specific thread that’d be more helpful in deciding whether the wording of the post implied that it was free for public use.

The forums are covered by Unity’s terms of service [1], and the terms themselves are expanded upon in the Site & Communities Additional Terms (linked below). Contrary to the opinions posted above, forum-posted content defaults to belonging to the person who posted it.

This is further expanded upon in the Unity Website and Communities Additional Terms:

That said, the code may have an implied license, depending on the wording of the post. But your best bet legally is to get expressed permission from the post authors, or have a lawyer look at the wording of the post itself.

See these discussions on stack exchange that talk about the issue. As far as I could tell from Unity’s Terms, the only way the terms affect the copyright is that you give Unity the right to use and redistribute your code, not necessarily other users unless stated explicitly.

If you’re wondering whether you’ll be OK to use someone’s posted code, the answer is probably* yes. This area of law is largely without precedent, meaning it’d be incredibly expensive and difficult to pursue legally. Nobody’s going to come after you for having some copy-pasted code in your game so long as that code was made publicly available, and you’re not planning on posting the source code and claiming it as your own. And depending on the wording of the post, the licensing may be implicit anyways.

*This is not legal advice, talk to your lawyer if you’re still not sure. There’s one on twitter who’s pretty responsive.

4 Likes

It would have been good advice if you explained why such approach is a bad idea and then explain how to do it properly.

4 Likes

The closest info I can find now, is (Last Updated: September 7, 2018)
"
I visit the Unity website, what should I know?
We collect log info, including IP address and device data, related to your visits to our site. When you post comments on our community pages and forums, other forum users will be able to see your username, photo and comments. When you post, you should assume that all the information you provide is public.
"

https://unity3d.com/legal/privacy-policy

I suppose, it can be interpreted that content can be copied, shared and reproduce by anyone.
Just like any social media / videos / images, unless otherwise stated.

I did that, you can not know the quality of the code, plus even if it’s quality code and you copy paste all over the place the end result will not be pretty, it should be self explanatory

It’s covered under intellectual property rights, which is a link on the right at the top of the terms of service. You won’t find talk about licenses because that would make absolutely no sense. Even some deductive reasoning tells you that. And any attorney would immediately understand the implications.

Link would be nice, so here it is
Unity Terms of Service

    1. Intellectual Property Rights

"
4.2 Your Content
As between you and Unity, you own all right, title and interest (including, all intellectual property rights) in and to the content you create using the Software, Developer Services and/or any content you post to the Site or in the Communities (collectively, “Your Content”) (other than any components of the Software contained therein or used in connection therewith).
"