Save System: applySaveDataToSpawnedObjectsOnRestore not exposed

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
NotVeryProfessional
Posts: 145
Joined: Mon Nov 23, 2020 6:35 am

Save System: applySaveDataToSpawnedObjectsOnRestore not exposed

Post 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?
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save System: applySaveDataToSpawnedObjectsOnRestore not exposed

Post 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.
Post Reply