Placeable

In editor validation

sort Weight: 10

In editor validation

Version: v5.0.0

STABLE

Inherits: GBResource
Source: placeable.gd
Parsing: AST-based for maximum accuracy with symbol typing


Methods

_init

Signature: _init(p_packed_scene : PackedScene = null: Variant, p_placement_rules : Array[PlacementRule] = []: Variant) -> void

Returns: void

Parameters:

  • p_packed_scene : PackedScene = null: Variant
  • p_placement_rules : Array[PlacementRule] = []: Variant

get_load_data

Signature: get_load_data(p_include_uid : bool: Variant) -> Dictionary

Gets a serialized reference to the placeable for both the FILE_PATH and the file path as a backup

Returns: Dictionary

Parameters:

  • p_include_uid : bool: Variant

load_resource

Signature: static load_resource(p_load_data : Dictionary: Variant) -> Placeable

Function to help location the placeable using FILE_PATH or file path as backup and returning it

Returns: Placeable

Static: true

Parameters:

  • p_load_data : Dictionary: Variant

get_packed_root_name

Signature: get_packed_root_name() -> StringName

Gets the name of the root node in the packed_scene

Returns: StringName


get_editor_issues

Signature: get_editor_issues() -> Array

Returns an array of issues that were found in the placeable

Returns: Array


get_runtime_issues

Signature: get_runtime_issues() -> Array

Returns all found runtime issues including the editor issues as a baseline.

Returns: Array


_validate_property

Signature: _validate_property(property: Dictionary) -> void

In editor validation

Returns: void

Parameters:

  • property: Dictionary