Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: snaka on March 04, 2022, 10:16:26 PM
-
I suddenly got a compile error, can anyone help me?
The error looks like this.
Assets/Unity.VisualScripting.Generated/VisualScripting.Core/AotStubs.cs(1,2): error CS1040: Preprocessor directives must appear as the first non-whitespace character on a line
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Unity.VisualScripting.Generated.Aot
{
I looked at AotStubs.cs and it looks <auto-generated>. How should I modify it?
-
Continued.
I cloned the project back from GitHub and opened it, and it worked without errors. That's a relief.
However, once I build it on iOS, it fails and then goes into a compile error state again.
I found two similar errors in this project. I am at a loss.
-
Hi,
it is referencing to unity.visualscripting
Are you using unity visualscripting together with Playmaker or is unity's visual scripting tool only installed.
if only installed and not used, then try to remove it.
else its best to ask on the unity forum for a solution
-
Thank you for your reply.
Resolved!
I removed the visual scripting from the package manager and the error is gone.
Thank you very much!!!