-
Notifications
You must be signed in to change notification settings - Fork 1
Creating New Vision Effects
Jasmine Mai edited this page Aug 26, 2020
·
1 revision
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 underAssets > 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 theSkyboxController.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 anEvent
). - 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 underAssets > 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 underAssets > Scripts > Vision
.