Skip to content

ScriptComponent only uses the path of the asset path not its source. #233

Open
@shanecelis

Description

@shanecelis

This issue is based on the staging branch and PR #183. I'm noticing the following things:

  1. I can load a script using an asset path, e.g., "nano9://main.lua" using AssetServer. (This uses an additional source like this example.)
  2. Then to make it run, I have to use only the path "main.lua" on ScriptComponent, which is ambiguous.

Is it expected to reference the script in ScriptComponent and load it? If it's expected that I must load and retain a Handle<ScriptAsset> it would be nice if ScriptId could be an asset path Cow<'static, str> or a Handle<ScriptAsset>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions