- Home /
#if not working after api update
I imported vegetation studio pro into my project, made an api update and now not a single #if statement works in all of my scripts. I have many dependency errors due to missing 3rd party assets. What can i do?
what kind of "api update" did you do? can you share steps to reproduce that? What exactly are the errors? what is the "if statements" that don't work?
I imported VegetationStudioPro and then the following popup came across Things like these don't work anymore
#if UNITY_POST_PROCESSING_STACK_V1 && AQUAS_PRESENT
if (gameObjects.mainCamera.GetComponent<PostProcessingBehaviour>() == null)
{
gameObjects.mainCamera.AddComponent<PostProcessingBehaviour>();
}
postProcessing = gameObjects.mainCamera.GetComponent<PostProcessingBehaviour>();
#endif
or
#if UNITY_EDITOR && AQUAS_PRESENT
Well, we know what pre processing statements are. However what exactly do you mean by they "don't work" anymore? Are you sure those two defines actually exists? Some installers may overwrite the script defines during installation. A quick google gave an example.
I don't have this package you have installed. However checking the assetstore page showed there should be a script called "CompilerDefine.cs" located at
AwesomeTechnologies/VegetationStudioPro/Editor/Common/Editor/CompilerDefine.cs
I don't know what's in that script, but it may be the root of your issue.
Answer by TrickShotMLG · Apr 07 at 04:51 PM
I fixed it by creating a new project and importing all assets again and declining the script upgrades
Your answer
Follow this Question
Related Questions
threading if() problem 1 Answer
please Help! - building for Android devices 0 Answers
Google Play Dev Console not updating information 2 Answers
Assets/scripts/fbLogin.cs(60,52): error CS1501: No overload for method `API' takes `3' arguments 1 Answer
How can i get Viking Village to work with error code? 0 Answers