Hi guys,
I am using Dotween. I have prefabs that has tweens in it. Whenever I try to build these prefabs with tweens not commented out, I get this errors.
Assets\Scripts\Spawnables\Road.cs(13,19): error CS0012: The type ‘Quaternion’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.
Assets\Scripts\GUIContollers\TabOpener.cs(52,25): error CS0012: The type ‘Vector3’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.
Failed to compile player scripts
UnityEditor.GenericMenu:CatchMenu(Object, String[ ], Int32)
SBP ErrorError
UnityEditor.GenericMenu:CatchMenu(Object, String[ ], Int32)
Before this error, I got 742 variant of this error below, looked up google, people were suspecting Using UnityEditor library out of Editor folder so I put the Modules folder that using UnityEditor library in Editor folder.
Assets\Plugins\Demigiant\DOTween\Modules\DOTweenModuleUI.cs(28,57): error CS0012: The type ‘Vector2’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.
Variant errors changes from ‘Vector3’ to ‘Color’ to any other datatype. I tried on my mac too, same thing happened.
this seemed to solve 742 errors and I am not using Editor library anymore but I am getting the first four errors when building the prefabs.
Do you have any idea what is the cause of this. I dont want to switch back to regular prefabs
thanks…