Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Item paths to images not working #483

Open
nearnshaw opened this issue Feb 28, 2025 · 0 comments
Open

Custom Item paths to images not working #483

nearnshaw opened this issue Feb 28, 2025 · 0 comments
Labels
2-medium Important issues we must fix, but not as important as high! bug Something isn't working editor

Comments

@nearnshaw
Copy link
Member

nearnshaw commented Feb 28, 2025

If I define a custom item that includes images as part of its assets, the path to these doesn't get properly referenced.

This is blocking the creation of certain smart items like scrolls. It's also affecting the quality of the image smart item that's already available.

For example, in this text scroll smart item, a show text action also shows a background image.

text_scroll.zip

In the composite.json, I see the path to the image is the following, which looks consistent with how the gltf path is referenced
{assetPath}/scroll_fantasy_dark.png

But when I add the entity to one of my scenes, the item fails to show the image. If I open up the advanced mode for the item, I see this:

Image

At this point the path should have been updated to replace the string {assetPath}
custom/magic_scroll/scroll_fantasy_dark.png

The same happens if the image is on the Texture field of the Material component.

image.zip

@nearnshaw nearnshaw converted this from a draft issue Feb 28, 2025
@nearnshaw nearnshaw added bug Something isn't working editor 2-medium Important issues we must fix, but not as important as high! labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-medium Important issues we must fix, but not as important as high! bug Something isn't working editor
Projects
Status: Todo
Development

No branches or pull requests

1 participant