Unity-Technologies / guid-based-reference

A component for giving Game Objects a GUID and a class to create references to objects in any Scene by GUID
Other
625 stars 71 forks source link

Unity 2018.3 API support (with compiler arguments for old API) #11

Closed Mark-LaCroix closed 5 years ago

Mark-LaCroix commented 5 years ago

(First, sorry about my tabs)

This is a relatively straightforward API update, except that due to the new Prefab structure there is no replacement for PrefabType.PrefabInstance. I'm a little worried that PrefabUtility.IsPartOfPrefabInstance(this), which I use here, might not be the correct way to fully capture the same functionality, or may introduce unintended functionality.

I used compiler arguments so that it would remain compatible with pre-2018.3 projects.

(I love this project, by the way. I use it to easilty keep track of the status/position of thousands of objects across all the scenes my game in order to automatically populate data into my player's save file.)

Mark-LaCroix commented 5 years ago

Welp, nevermind. Looks like you have this functionality already set up in another branch. If only I knew how to use git... :-D