|
Post by FK on Apr 17, 2020 15:57:04 GMT
How to use FogOfWar?
|
|
|
Post by zwembroek on Apr 30, 2020 14:56:58 GMT
A simple question. I have the same question.
|
|
|
Post by zwembroek on May 1, 2020 12:24:52 GMT
I figured it out. Quite simple actually.
Each Hex has a visibility setting. You can set it like this:
interfaceHex.SetVisibility(Hex.Visibility.FullyVisible);
These are the current options: public enum Visibility { FullyVisible, Shadowed, NotVisible, }
You have to create the logic of when a hex is visible or not yourself.
One thing you do NOT want to do, is add a component to the game scene with the FogOfWar script attached to it. That messes things up badly, and dit cost me a couple of hours to figure out.
|
|