-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support 2021.1 #11
Comments
Up to Unity 2020.x, we used to replace the compile process from the script, but that is no longer possible.
|
https://forum.unity.com/threads/unity-c-8-support.663757/page-7#post-6749023 So apparently this is happening. |
I found a way to replace the compiler on newer Unity versions. symlink (or copy) symlink (or copy) |
@mob-sakai
I don't think we can do this per-assembly anymore ( It might be possible to remove The other solution might be to modify OpenSesame compiler to check if assembly actually wants |
@KuraiAndras @SugoiDev @neon-age |
In Unity 2021, any user code cannot be executed prior to the first compilation. For example, if you have code that accesses non-public members (with the custom compiler using System;
using NUnit.Framework;
namespace IgnoreAccessibility
{
public class IgnoreAccessibilityContent
{
private int privateNumber = 999;
}
public class IgnoreAccessibilityTest
{
[Test]
public void GetPrivateField()
{
#if CUSTOM_COMPILE
Assert.AreEqual(new IgnoreAccessibilityContent().privateNumber, 999);
#else
throw new NotImplementedException();
#endif
}
}
} |
@KuraiAndras @SugoiDev @neon-age |
Nice work! |
On 2021.1.a9 the "Apply" button is causing an exception, so I couldn't test it yet.
Originally posted by @SugoiDev in #6 (comment)
The text was updated successfully, but these errors were encountered: