Expand description
Schema definitions for engine node types, properties, inheritance, and validation.
Re-exports§
pub use crate::nodes::ALL_NODES as NODE_SCHEMAS;
Structs§
- Node
Type Schema - Schema metadata defining a node type and its inheritance relationships.
- Prop
Schema - Schema metadata defining an individual node property.
Enums§
- Default
Prop Val - Static representation of a property’s default value defined in a node schema.
- Prop
Hint - UI presentation and editing hint for inspector property widgets.
Functions§
- all_
props - All props for
type_name, walking the inheritance chain from leaf to root and deduplicating by key (leaf declarations shadow ancestors). The leaf’s version of an overridden prop (its default, hint,read_only) wins, soButton.colorsees[51, 65, 85, 255], notControl.color’s white. Unknown types fall through toNode(which declares no props). - inheritance_
chain - Computes the inheritance chain for a node type from leaf to root (e.g.
["Sprite2D", "Node2D", "Node"]). - is_
valid_ custom_ prop_ type - True when
type_strnames a type a[props]entry may declare. Accepts aliases so hand-written manifests stay forgiving. - node_
type_ schema - Retrieves the schema definition for a given node type by name.
- type_
props - Returns the direct properties declared specifically on
type_name. - validate_
custom_ prop_ type - Check a
PropValueagainst a[props]declared type name. Errors name the expected and actual types sopite checkand Pythonset_custom_propertysurface the same message.