+1 vote

I'd like to share a reusable version of my fps components (player, bots...). How should the asset be structured to be properly published in the AssetLib?

in Engine by (698 points)

1 Answer

0 votes
Best answer

You should get some ideas about how to structure your package if you look at how they look when you download them.
When people get your package, it will be the same thing as if they would open a ZIP archive right at the root of their project, so as long as your files are well organized, at least in a recognizable folder, it should be ok.
Usually, when I make an addon I put all the things under the addons/zylann.my_addon/ folder. So in your case, you can do it under addons/gokudomatic2.fps_utility for example. But this "addon" path thing is mostly required if you make an editor plugin. If you don't, you can choose a different path as long as your assets don't enter in conflict with everyone's projects.

by (27,774 points)
selected by

Thanks Zylann. Yet there are couple of information lacking. For instance I'm using a night build from godot. Would that make a problem? And my components should be divided to keep flexibility, like for instance the bots and weapons should be separate plugins, one for each (and of course a pack all-in-one). Would that be possible? And what would be the limit? Also, should each component have its own git repository?

Well, there are not many rules yet, so you have to decide how to distribute your package. Asssets depending on other assets doesn't seems to be widespread for now, so unless your package is really massive, I would suggest keeping it all in one for simplicity.

If you require a specific version of Godot that must be written in the description. There is no place where you can enforce engine version checking, that could be worth asking for improvement.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.