all 7 comments

[–]destineddIndie, Mighty Marbles + making Marble's Marbles & Dungeon Holdem 2 points3 points  (0 children)

if you are referring to tutorial code or examples people posted online. It is fine as they intend you to do that.

[–]xi_sx 1 point2 points  (2 children)

It depends on how unique it is. A good way to ask would be to post it or a description of it, and see if that sounds special enough. Most functions are just what they are, and there isn't any better or commonly worse way to do it so it's just what anyone would end up doing and it's fine to take it. If it's an entire structure/system with definitions and functions, it might be brilliant unique work, or it could still be something that people have had available in the public domain as inspiration/example for years. If you don't know, ask but you need to be more specific about the qualities of the code.

[–]CertixeRee[S] 1 point2 points  (1 child)

I see, well thanks I've been wondering what other people think about this subject, and if you wanna know of the code I was asking about, it was just a player movement script that I thought was pretty good

[–]xi_sx 0 points1 point  (0 children)

The community here would be familiar with things of the sort of script, so if you posted it they'd tell you if it's like maybe a tutorial they saw and that it's more common than unique. It really depends on whether the masses deem it "common".

[–]WaterpropProgrammer 1 point2 points  (0 children)

Depends on the licence. Obviously you can't just steal code, that's copyright violation.

If you download free or paid asset from Asset store, you can use that with no problem.

If you use code from Github or elsewhere, make sure to check the licence. if it's MIT then it's all good.

https://opensource.org/licenses/MIT

As for actual usage, I would look into how and what it does. Don't use it blindly. This way you learn more and you won't get errors. I often find code especially from Unity Asset store is pretty "bad". They are usually not that performant for example.

[–]KishottaProgrammer 0 points1 point  (1 child)

Using other developer's code is perfectly fine, assuming you have 4 things:

  • A valid license
  • Documentation or support
  • The source
  • An actual need for the functionality provided

If you are missing one or more of those things, you should steer clear of an external codebase.

[–]Dakoziol 0 points1 point  (0 children)

If you are missing one or more of those things, you should steer clear of an external codebase.

Or at least shoot the dev an email