Assigned my state, but the state gets set back to UNASSIGNED when I Compile Assembly.

Options
I was trying to make the players visible. So I created a new State and called it MyPlayerState.

I added a property (transform).

Imported a Mechanim controller and was able to see all of the animations.

Compiled Assembly

Added this to the prefab and was able to assign the state and get an ID. When I compile and go back to the prefab the state is UNASSIGNED.

When I run it, I get Unknown Factory [UniqueID NONE].

Any help would be greatly appreciated.

Comments

  • Hmm, so I was able to resolve this. I had to remove the instance of the player that was already on the scene and re-add it. It saves the value now and seems to work.