Last active
January 19, 2023 22:16
-
-
Save pwab/c57fdf86147831ccc4248073d80f3e36 to your computer and use it in GitHub Desktop.
Godot Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just some Snippets for Godot 4.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This creates a "screenshot" of the current 3D-Node | |
# and exports it as a glTF 2.0 file including meshes, | |
# materials, lightning and animations | |
var path = "user://world.glb" | |
var document = GLTFDocument.new() | |
var state = GLTFState.new() | |
document.append_from_scene(self, state) | |
document.write_to_filesystem(state, path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment