class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResourceTileSetSource TileSetScenesCollectionSource
Exposes a set of scenes as tiles for a TileSet resource.

When placed on a TileMap, tiles from TileSetScenesCollectionSource will automatically instantiate an associated scene at the cell's position in the TileMap.

Scenes are instantiated as children of the TileMap when it enters the tree. If you add/remove a scene tile in the TileMap that is already inside the tree, the TileMap will automatically instantiate/free the scene accordingly.

int create_scene_tile<>( PackedScene packed_scene=, packed_scene:PackedScene=, int=, int:=, ):int

Creates a scene-based tile out of the given scene.

Returns a newly generated unique ID.

int get_next_scene_tile_id<>():int

Returns the scene ID a following call to create_scene_tile would return.

bool get_scene_tile_display_placeholder<>( int id=, id:int=, ):bool

Returns whether the scene tile with id displays a placeholder in the editor.

int get_scene_tile_id<>( int index=, index:int=, ):int

Returns the scene tile ID of the scene tile at index.

PackedScene get_scene_tile_scene<>( int id=, id:int=, ):PackedScene

Returns the PackedScene resource of scene tile with id.

int get_scene_tiles_count<>():int

Returns the number or scene tiles this TileSet source has.

bool has_scene_tile_id<>( int id=, id:int=, ):bool

Returns whether this TileSet source has a scene tile with id.

void remove_scene_tile<>( int id=, id:int=, ):void

Remove the scene tile with id.

void set_scene_tile_display_placeholder<>( int id=, id:int=, bool display_placeholder=, display_placeholder:bool=, ):void

Sets whether or not the scene tile with id should display a placeholder in the editor. This might be useful for scenes that are not visible.

void set_scene_tile_id<>( int id=, id:int=, int new_id=, new_id:int=, ):void

Changes a scene tile's ID from id to new_id. This will fail if there is already a tile with an ID equal to new_id.

void set_scene_tile_scene<>( int id=, id:int=, PackedScene packed_scene=, packed_scene:PackedScene=, ):void

Assigns a PackedScene resource to the scene tile with id. This will fail if the scene does not extend CanvasItem, as positioning properties are needed to place the scene on the TileMap.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...