create_asset_sync


Description:

public Asset? create_asset_sync (string? id, Type extractable_type) throws Error

Create and add a Asset to this.

You should connect to the "asset-added" signal to get the asset when it finally gets added to this

Parameters:

this

A Project

id

The id of the asset to create and add to this

extractable_type

The Type of the asset to create

Returns:

The newly created Asset or null.