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

[unity] Provide alternative to [SpineSkin] string with cached Skin reference #2453

Open
HaraldCsaszar opened this issue Jan 18, 2024 · 0 comments
Assignees

Comments

@HaraldCsaszar
Copy link
Collaborator

It's bad to request users to use [SpineSkin] string skin; and tell them to use FindSkin(skin) and cache the returned Skin reference themselves all the time.

Instead e.g. provide a class which holds both the cached Skin reference and a serialized string (or something similar).

Alternatively, a SerializedAsset analogous to AnimationReferenceAsset could be used. Benefit would be to only cache the skin reference once instead of at each instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant