![]() |
Unity 2019.3.12 - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: General (https://obi.virtualmethodstudio.com/forum/forum-5.html) +--- Thread: Unity 2019.3.12 (/thread-2211.html) |
Unity 2019.3.12 - Kristaps - 01-05-2020 Hello! I wanted to check how Obi products work with the latest Unity version but it looks that there is some bug! ( Not sure if it's Unity or Obi bug ) Created a new empty project and imported the latest Obi Rope. After want to use in code ObiActor or other Obi components receive an error that can't find a reference to such class?! Switched to Unity 2019.3.11 and everything works fine there! Can use in code ObiActor etc. P.S. Also the example code throws errors in Visual Studio! RE: Unity 2019.3.12 - josemendez - 01-05-2020 (01-05-2020, 01:18 PM)Kristaps Wrote: Hello! Hi, We are unable to reproduce this. Make sure you're declaring to use the Obi namespace: Code: using Obi; at the top of your scripts. If this isn't the cause, could you please share with us the errors you're getting? RE: Unity 2019.3.12 - Kristaps - 01-05-2020 (01-05-2020, 01:26 PM)josemendez Wrote: Hi, Yep - all that done! Did you try with 2019.3.12? As soon switch from 2019.3.11 to 2019.3.12 get errors like: Code: /Assets/Obi/Samples/RopeAndRod/SampleResources/Scripts/RuntimeRopeGenerator.cs(25,25): Error CS0246: The type or namespace name 'ObiCollider' could not be found (are you missing a using directive or an assembly reference?) (CS0246) ![]() What are you using for code editing? ( will try to update to latest Visual Studio ) RE: Unity 2019.3.12 - josemendez - 01-05-2020 Hi, I don't get any errors when trying 2019.3.12 or 2020.1b. Is the ObiCollider.cs file present? Also, do you have any compiler errors prior to this one? RE: Unity 2019.3.12 - Kristaps - 01-05-2020 No errors in the Unity editor! Only when open Visual Studio to edit some code, then the errors start to show up when using Unity 2019.3.12. P.S. Still updating to the latest Visual Studio to see if that fixes the problem! RE: Unity 2019.3.12 - josemendez - 01-05-2020 Hi, Unable to reproduce this, sounds like a Visual Studio issue. It's weird that no errors show up in Unity, but do show up in Visual Studio. Sounds a bit like this?: https://answers.unity.com/questions/1487989/is-it-normal-that-scripts-dont-compile-in-visual-s.html RE: Unity 2019.3.12 - Kristaps - 01-05-2020 (01-05-2020, 01:53 PM)josemendez Wrote: Hi, Installed the latest Visual Studio, still the same trouble - will stick to Unity 2019.3.11 for now! ![]() ( have a feeling that this is some Unity bug ) Thanks for helping! |