Hi there,
I've tried to follow this tutorial
https://www.adventurecreator.org/tutorials/saving-custom-scene-datato save the turn on/off state of light. I copied the whole script, saved it as RememberLight.cs and attached it to the light. After that, when trying to run the game, I get this error message:
CS0118: "UnityEngine.Component.light" is a "property" but "type" was expected
Any idea of why is this happening?
Comments
If I create an "obect: animate action" it will ask for a clip, but I can't create a clip with an object with the light component attached, right?
Excuse my english, I hope that was understandable.
Never mind having AC control the animation for now - first work on creating the actual animation itself. If the animation will always play, there may not even be a need for AC to control it. See Unity's documentation on Animators and Animations for more on how to keyframe Inspector fields in animation clips.