Forum rules - please read before posting.

rememberAnimator and RememberVisibility don't like each other

when there is a RememberVisibility Script on a GameObject
together with a remember animator script.

Then valuesString is null and the animation isn't restored when loading a save game.

workaround - don't use the action to set visibility but a state in animator which has a non-looping  1 frame animation thats disables the sprite.

error onload:
NullReferenceException: Object reference not set to an instance of an object
AC.RememberAnimator.StringToLayerWeights (System.String valuesString) (at Assets/Dev/1.51/RememberAnimator.cs:196)
AC.RememberAnimator.LoadData (System.String stringData) (at Assets/Dev/1.51/RememberAnimator.cs:60)
AC.ConstantID.LoadData (System.String stringData, Boolean restoringSaveFile) (at Assets/AdventureCreator/Scripts/Save system/ConstantID.cs:75)
AC.LevelStorage.SendDataToScene (AC.SingleLevelData levelData, Boolean restoringSaveFile, AC.SubScene subScene) (at Assets/AdventureCreator/Scripts/Save system/LevelStorage.cs:130)
AC.LevelStorage.ReturnCurrentLevelData (Boolean restoringSaveFile) (at Assets/AdventureCreator/Scripts/Save system/LevelStorage.cs:77)
AC.SaveSystem._OnLevelWasLoaded () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:773)
AC.SaveSystem.OnLevelWasLoaded () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:69)

image


Comments

  • In v1.52?  Can't get this issue myself.  But if valuesString was null, it'd flag up in line 191, no?
  • ah sorry. I used the RememberAnimator script you posted earlier in the forum. 
    Usually it should update it on an import. I ll try a reimport
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.