How do I fix the cs0234 error for probuilder api
Hi I wanted to test out the probuilder API for my current project and I've ran into a problem I just can't figure out how to fix.
I have installed Probuilder through the packet manager in the unity editor and as I wanted to add the library to my script using the "using UnityEngine.ProBuilder;" command I got the error that Probuilder isn't available in the UnityEngine namespace.
The error: The type or namespace name "ProBuilder" is not present in the namespace "UnityEngine". (Possibly an assembly reference is missing.) [Assembly-CSharp].
Thanks in advance.
I get the same error. ProBuilder seems to have installed correctly as I can see the ProBuilder window in the editor, but the scripting API can't be found. I remember seeing somewhere that we don't need to manually create an asmdef with the recent versions of ProBuilder and the scripting API should be automatically integrated in UnityEngine? I'm using ProBuilder 5.0.4 in Unity 2019.4.37f1.
Answer by fahruz · Apr 28 at 11:45 AM
Ok, deleting the .sln file and reopening Visual Studio fixed the problem.
Your answer
Follow this Question
Related Questions
Namespace inside DLL file 0 Answers
How do I add music code to my C# without getting a API update prompt? 1 Answer
Unity and external plugins 0 Answers
Promise from jslib to c# 0 Answers
How to create a rest authentication header in unity 1 Answer