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

Improve the reserialization lambda #3

Open
PereViader opened this issue May 3, 2024 · 0 comments
Open

Improve the reserialization lambda #3

PereViader opened this issue May 3, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@PereViader
Copy link
Owner

Right now it just returns the instance, but we could improve it further

  • When dealing with Serializable class instances, the actual root unity object is not exposed
  • It is unknown to the developer without doing the work (can't be done for serializable class) if the instance is for a scene, prefab or prefab variant

The lambda could return a parameter instead of the instance on which we could do operations like

  • T Instance {get;}
  • string GetPathToInstance()
  • UnityEngine.Object GetNearestEngineObject()
  • UnityEngine.Object GetRootEngineObject()
  • bool IsSerializedInAScene()
  • bool IsSerializedInARootPrefab()
  • bool IsSerializedInAVariantPrefab()

More nice operations could be implemented

@PereViader PereViader added enhancement New feature or request good first issue Good for newcomers labels May 3, 2024
@PereViader PereViader self-assigned this May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant