This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

Hey!
I see many projects that have files for players, enemies and other stuff in diferent formats, like. player.res ,,, enemy.xsn,,, enemy.xscn, snow.xml...
Why so many formats for sceenes?

in Engine by (227 points)

1 Answer

+2 votes
Best answer

Scenes used to be in xscn/xml (XML) and scn (binary) formats, one that is human-readable and another for performance.

Then tscn (TOML) was added to the engine as a more friendly text format, and xscn/xml is now deprecated.

Resources that are not scenes also use these same formats, under a different extension suffixed *res so they can be differenciated from scenes.

The idea is you can use tres and tscn (with a t) to save resources and scenes as text format that is easy to work with during development of the game (especially with Git or other VCSs), and then use res and scn if performance is really needed on a huge scene that takes forever to load for example (they are converted to binary anyways when you export the game).

by (29,510 points)
selected by
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 Frequently asked questions and 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 [email protected] with your username.