Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
139 stars 2 forks source link

A way of getting a url of an asset in an asset frame #3091

Open epicEaston197 opened 2 weeks ago

epicEaston197 commented 2 weeks ago

Is your feature request related to a problem? Please describe.

It's really hard to get a URL of let's say a texture When you're not directly referencing either the texture or the URL input itself

Describe the solution you'd like

I would like there to be a url field on the asset frame slot component

Describe alternatives you've considered

As people have referenced in the replies here there are ways of doing this but it isn't perfect I am requesting a standardized way of being able to get a url from a asset frame

Additional Context

No response

Requesters

@epicEaston197

shiftyscales commented 2 weeks ago

Can you please clarify what you are trying to do with your request, @epicEaston197? Why do you need to directly access the URL of an asset? You can already use the AssetFrameSlot component to directly send the asset to other components as-needed. E.g. the Clip of an AudioClipPlayer as an example.

epicEaston197 commented 2 weeks ago

Can you please clarify what you are trying to do with your request, @epicEaston197? Why do you need to directly access the URL of an asset? You can already use the AssetFrameSlot component to directly send the asset to other components as-needed. E.g. the Clip of an AudioClipPlayer as an example.

Due to not having component access I need to be able to read the url of the asset to write it to a template that I have control over and use things like dynamic variables to access fields I would normally not be able to for image editing Plus it's just useful

You might also need to do this to be able to read texture data from an image These are just a few examples

Having access to the asset url would be very useful

Dusty-Sprinkles commented 2 weeks ago

You don't actually have to fully ref-hack to get the Uri, i did this myself when making a texture editor for a moontail but and the code I used is here on the discord

The ability to directly read the Uri is still very useful for making dynamic textures and such

3x1t-5tyl3 commented 2 days ago

You don't actually have to fully ref-hack to get the Uri, i did this myself when making a texture editor for a moontail but and the code I used is here on the discord

The ability to directly read the Uri is still very useful for making dynamic textures and such

resrec:///U-3x1t-5tyl3/R-98d96430-c3d5-4569-be49-2c7ee80bef25

When using the texture in a sprite oyu can dynamically get the asset's url. Example above should help and is available in my folder. Though it is not a direct way. It is so far the least broken way and requires only a few components, a cast driver and source and the rest how you plug the texture in is up to you. Though I wanna point out it's an imperfect solution.