For what it's worth, I'm planning to release a Script Reference with the next major release of AC. A tutorial will also be published that covers writing an Interaction entirely through script.
I am using Unity 2019.4.6f1 and AC 1.72.4. I happened to run into a situation that, when using the script MyHotspot.TurnOff ();, it works in the Editor but not in a compiled version for Windows (I only tested x64).
My usage is in a loop:
for (int i = 0; i < buttonsHotspots.Length; i++) {
buttonsHotspots [i].TurnOff();
}
Comments
error CS0103: The name `MyHotspot' does not exist in the current context
If I just use this MyHotspot.TurnOff ();
Doesn't work either.
Forgot to define public Hotspot MyHotspot ;
Thanks
For what it's worth, I'm planning to release a Script Reference with the next major release of AC. A tutorial will also be published that covers writing an Interaction entirely through script.
For I couldn't find any references in the documentation manual file that comes with AC.
I am using Unity 2019.4.6f1 and AC 1.72.4. I happened to run into a situation that, when using the script
MyHotspot.TurnOff ();
, it works in the Editor but not in a compiled version for Windows (I only tested x64).My usage is in a loop:
for (int i = 0; i < buttonsHotspots.Length; i++) {
buttonsHotspots [i].TurnOff();
}
What's the context surrounding that code? When are you running it, and how are you assigning the buttonsHotspots array?