Page 1 of 1

Save System: applySaveDataToSpawnedObjectsOnRestore not exposed

Posted: Sat Nov 27, 2021 1:54 am
by NotVeryProfessional
For some reason, applySaveDataToSpawnedObjectsOnRestore is not exposed in the inspector.

I added SerializeField like this and now it works:

Code: Select all

	    [Tooltip("When restoring this Spawned Object Manager, tell respawned objects to restore their saved data also.")]
	    [SerializeField]
        private bool m_applySaveDataToSpawnedObjectsOnRestore = false;

I hope that's the right fix and I didn't miss anything?

Re: Save System: applySaveDataToSpawnedObjectsOnRestore not exposed

Posted: Sat Nov 27, 2021 8:14 am
by Tony Li
Hi,

It's exposed as a public property, but fair enough to expose it to the inspector, too. I'll add that in 2.2.23.