Skip to content

Updates misleading image res: path documentation - #20

Merged
gkurt merged 1 commit into
ReactUnity:mainfrom
PowerfulBacon:patch-1
Oct 10, 2025
Merged

Updates misleading image res: path documentation#20
gkurt merged 1 commit into
ReactUnity:mainfrom
PowerfulBacon:patch-1

Conversation

@PowerfulBacon

Copy link
Copy Markdown
Contributor

The image res: path starts with a forward slash. The actual handling in the code needs to not have a forward slash.

<image
                    className="icon"
                    source="res:uisprites/BlankEquipmentIcons_20x17_0"
                  />
image
<image
                    className="icon"
                    source="res:/uisprites/BlankEquipmentIcons_20x17_0"
                  />
image

@gkurt gkurt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how I didn't catch this before. Thanks a lot for this.

@gkurt
gkurt merged commit 3719d9f into ReactUnity:main Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants