Skip to content

Improve the reserialization lambda #3

@PereViader

Description

@PereViader

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions