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

Pass arguments on scene load (to intercept the loadables before they are applied to entities) #6

Open
rudderbucky opened this issue Nov 26, 2024 · 1 comment

Comments

@rudderbucky
Copy link
Contributor

Copying relevant discussion verbatim

Basically if I know the specific image I want to set pre-cob-load something like

LoadedUiImage{
  image:$PRELOAD_NAME
}

And then I can specify $PRELOAD_NAME when running c.ui_root().load_scene()
Cause I think a good 40% of my images are like this, 55% do not need this, and 5% are complicated enough that modifying the components directly is worth it

@UkoeHB
Copy link
Owner

UkoeHB commented Nov 26, 2024

Also pasted:

Right now scenes are fully extracted when files are processed. Loadables are stored as Box, so scene loading is just a bunch of T::from_reflect(). To pre-inject parameters at the load site we'd need to expand the architecture to accommodate 'parameterized nodes'.

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

No branches or pull requests

2 participants