Skip to content

Instantly share code, notes, and snippets.

@lyuma
lyuma / compact_godot_editor_theme.tres
Created October 15, 2023 21:27
Editor theme for Godot 4 which makes the inspector and tree view compact, removing unnecessary spaces between items.
[gd_resource type="Theme" load_steps=32 format=3]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fnqu7"]
content_margin_left = 4.0
content_margin_top = 1.0
content_margin_right = 4.0
content_margin_bottom = 1.0
bg_color = Color(0.1, 0.1, 0.1, 0.3)
corner_radius_top_left = 3
corner_radius_top_right = 3
@lyuma
lyuma / calibrated_tracker.gd
Last active July 7, 2024 08:58
Godot calibration system from raw XRNode3D to calibrated bone offset / IK target. (MIT License)
# Copyright 2024 V-Sekai contributors
# SPDX-License-Identifier: MIT
@tool
extends Node3D
#@export_node_path("Node3D") var raw_tracker: NodePath:
#set(value):
#raw_tracker = value
#raw_tracker_node = get_node_or_null(raw_tracker)
@export var raw_tracker_node: Node3D