Prefab

Prefab Node

Public Methods

GetContent

public Node? GetContent(string projectPath)

Retrieves the content associated with this prefab by resolving it through the scene manager. Falls back to direct asset-provider loading when runtime services are unavailable.

Parameters:

  • projectPath (string): The path of the project where the asset is in.

Returns: Node?

  • An instance of Node if the asset content is found; otherwise, null.