Saving Instantiated Objects
1
3
Saving the Object
identifiable.SaveInstance();// Stores a reference of the instantiated object
GameObject instantiatedObj = Instantiate(objToInstantiate, transform.position, Quaternion.identity);
// Access Identifiable Component.
Identifiable identifiable = instantiatedObj.GetComponent<Identifiable>();
// Store instance.
identifiable.SaveInstance();Last updated
