!!Attention!!: This project has been taken over by the current Owner from the original author. At the request of the original author, all past history has also been made anonymous. All branches are force-pushed for this operation. Also, there is no active maintenance as before. We are desperately looking for collaborators to keep up with the fast-changing Udon.
Experimental .NET Roslyn Analyzer, Code Fixes, Refactorings for VRChat Udon and UdonSharp. This analyzer accelerates Udon development with UdonSharp by detecting syntaxes/language features that are not supported by Udon and/or UdonSharp in the editor stage. Check out the list of analyzers for supported syntaxes and other information.
- It reports the part of the behaviour that doesn't work well on VRChat as an error in editor
- It reports an error in the editor that about the syntax that cannot be compiled by the UdonSharp
- etc
- Microsoft Visual Studio 2019 or IDE that supports Roslyn Analyzer
- VRCSDK3 that supports Udon
- UdonSharp
This is how to develop the UdonRabbit Analyzer (not your UdonSharp project). If you want to load it into the UdonSharp project, refer to the installation for each IDE in the "Getting Started" section. Unless you are developing an Analyzer, I do not recommend doing the following section unless you have enough machine power.
- .NET 5
- Visual Studio Version 16.8+ or Visual Studio for Mac 8.8+
- Unity Project that containing VRCSDK3 and UdonSharp
- Open
Source/UdonRabbit.Analyzer.sln
in your Visual Studio - Start
UdonRabbit.Analyzer.VisualStudio.XXXX
as debug profile - After the Visual Studio Experimental Instance starts, open the Unity project that has VRCSDK3 and UdonSharp installed
- Open any source file that inherits from
UdonSharp.UdonSharpBehaviour
- Open
Source/UdonRabbit.Analyzer.sln
in your Visual Studio or other IDE - Build
UdonRabbit.Analyzer.CodeGen
- Run
dotnet ./UdonRabbit.Analyzer.CodeGen.dll -i IDENTIFIER -l "CLASS_NAME" -t "TITLE" -d "DESCRIPTION" -m "MESSAGE_FORMAT" -c CATEGORY -s SEVERITY -w ../
inROOT/bin
- Rebuild ResX in Visual Studio or run
ResGen.exe
- Start Coding!
- .NET 5
- Visual Studio Version 16.8+
- Unity Project that containing VRCSDK3 and UdonSharp
- Configure the following environment variables in
Source/UdonRabbit.Analyzer.Test/bin/Debug/net5.0/UdonRabbit.runsettings
UDONRABBIT_ANALYZER_TEST_PROJECT
: Unity 2018.4.20f1 Test Project Location (.csproj
)- I recommended to reference to
Assembly-CSharp.csproj
because it has all references to DLLs. - If you are not want to reference to
Assembly-CSharp.csproj
, add the following external references:TextMeshPro
UdonSharp.Runtime
- I recommended to reference to
UDONRABBIT_ANALYZER_TEST_UDON_SHARP
:UdonSharp.Runtime.dll
Location
- Run
dotnet test
MIT by esnya
This project contains some code from the following project. See method comments for details.