Skip to content

Creating New Vision Effects

Jasmine Mai edited this page Aug 26, 2020 · 1 revision

Creating New Vision Effects

You may find that you need to implement a new vision effect. Here is a checklist of things you must do to incorporate your new vision effect into the system. For more information on vision effects, read this.

  • Add your vision effect to the VisionEffect enum. This is found under Assets > Scripts > Core > AnimalEnums.cs
  • If your vision effect is a Material Effect, make sure your script inherits from MaterialEffect and implements the necessary functions
  • If your vision effect is a Skybox Effect, make sure your script inherits from SkyboxEffect and implements the necessary functions. Make sure to modify the SkyboxController.cs script accordingly.
  • If your vision effect is a Renderer Effect, make sure your script inherits from RendererEffect and implements the necessary functions. (Including setting an Event).
  • Make sure the namespace of your script (if you wrote a new one) is Anivision.Vision.
  • Update AnimalVision.cs with any new properties/information you need. This script can be found under Assets > Scripts > Vision. Make sure to modify the custom inspector for the script as well.
  • Update VisionParameters.cs with any new properties/information you need. This script can be found under Assets > Scripts > Vision.