class

PatternShaderMaterial

Inherits Godot::ShaderMaterial < Godot::Material < Godot::Resource < Godot::RefCounted < Godot::Object < Reference < Object

Custom Godot ShaderMaterial resource pre-configured with pattern_replace.gdshader, Palette color/theme selectors, and Patterns / PatternGenerator Inspector controls.

Constructors

new

Class methods

_godot_has_virtual_method(method_name : String) : Bool
_godot_register_node_class
godot_class_name
godot_parent_class_name

Instance methods

_godot_call_tool_button(button_name : String) : Void

Dispatches inspector tool button clicks on this object.

_godot_call_virtual(method_name : String, delta : Float64) : Void

Virtual method and property dispatch hooks overridden by class registration macros. Delta timestep is received with 64-bit precision (Float64).

_godot_call_virtual_with_data(method_name : String, args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void

Dispatches generic virtual methods with raw arguments and return buffer.

_godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void

Invoked by the GDExtension bridge when retrieving an exposed @export property.

_godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void

Invoked by the GDExtension bridge when setting an exposed @export property.

apply_theme_button
Source
bg_palette
Source
bg_palette=(val : Palette::ColorId)
Source
builder

Returns a fluent UniversalMaterial builder wrapping self.

Source
call(method : String, *args) : Pointer(Void)

Calls the named method on the object with variable arguments.

ensure_shader!

Ensures pattern_replace.gdshader is assigned to this ShaderMaterial.

Source
fg_palette
Source
fg_palette=(val : Palette::ColorId)
Source
generator
Source
generator=(val : PatternGenerator | Nil)
Source
outline_palette
Source
outline_palette=(val : Palette::ColorId)
Source
pointer=(val : Pointer(Void))
Source
preset_pattern
Source
preset_pattern=(val : String)
Source
randomize_button
Source
theme_preset
Source
theme_preset=(val : Palette::Theme)
Source

Macros

autoload(*args, **kwargs)

DSL directives for in-body autoload configuration

autoload_node(*args, **kwargs)
build
create