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

Add support for any reflect structure, even one that contains asset handles, as long as those handles reference a file with a known path. #122

Open
rewin123 opened this issue Dec 17, 2023 · 0 comments
Labels
editor core Core functional of editor

Comments

@rewin123
Copy link
Owner

Add a new method for registering components

app.editor_auto_struct()

which registers a component, allows to visualize it in the inspector, but saves not T, but AutoStruct, which contains the same T fields as DynamicStruct, but converts all handle fields to the path to the asset file. And when loading prefab AutoStruct should be converted to T by inserting one field at a time. And load all assemblies by saved paths from AutoStruct

This will allow to add support for such components as StandartMaterial.

@rewin123 rewin123 added this to the 0.4 milestone Dec 17, 2023
@rewin123 rewin123 added the editor core Core functional of editor label Dec 17, 2023
@rewin123 rewin123 modified the milestones: 0.4, 0.5 Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor core Core functional of editor
Projects
None yet
Development

No branches or pull requests

1 participant