Skip to content
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

[critical] Bug build IL2CPP #84

Closed
stalker1hunt opened this issue May 7, 2020 · 3 comments
Closed

[critical] Bug build IL2CPP #84

stalker1hunt opened this issue May 7, 2020 · 3 comments
Assignees
Labels
bug Something isn't working released on @preview

Comments

@stalker1hunt
Copy link

Describe the bug
I want build in IL2CPP and have bug. But i fixed his like:
Old

		protected override void OnValidate()
		{
			graphic.SetMaterialDirty();
			OnTransformParentChanged();
			base.OnValidate();
			_hasStencilStateChanged = false;
		}

new

		protected void OnValidate()
		{
			graphic.SetMaterialDirty();
			OnTransformParentChanged();
			_hasStencilStateChanged = false;
		}

With a new code bug has been solved.

To Reproduce
Steps to reproduce the behavior:

  1. Build

Expected behavior
Library\PackageCache\com.coffee.softmask-for-ugui@f5f5b7e\Scripts\SoftMask.cs(417,27): error CS0115: 'SoftMask.OnValidate()': no suitable method found to override

Screenshots
http://prntscr.com/scg6mz

Environment (please complete the following information):

  • Version last
  • Platform: Android
  • Unity version: 2019.3.0f6
  • Build options: IL2CPP
@stalker1hunt stalker1hunt added the bug Something isn't working label May 7, 2020
@maskedmouse
Copy link

maskedmouse commented May 8, 2020

OnValidate() in Mask is inside a #if UNITY_EDITOR. When you build for Android the base.OnValidate method won't exist resulting into a build error.

My guess is, that you forgot to uncomment line 387 & 424 in SoftMask.cs

@mob-sakai
Copy link
Owner

@stalker1hunt @maskedmouse
Thank you for reporting.
I'll fix it ASAP.

mob-sakai added a commit that referenced this issue May 8, 2020
github-actions bot pushed a commit that referenced this issue May 8, 2020
# [0.10.0-preview.3](v0.10.0-preview.2...v0.10.0-preview.3) (2020-05-08)

### Bug Fixes

* compile error on build ([e7ff660](e7ff660)), closes [#84](#84)
* visual bug with ScreenSpaceCamera canvas on editor ([ec9ac44](ec9ac44))
github-actions bot pushed a commit that referenced this issue May 8, 2020
# [0.10.0-preview.3](v0.10.0-preview.2...v0.10.0-preview.3) (2020-05-08)

### Bug Fixes

* compile error on build ([e7ff660](e7ff660)), closes [#84](#84)
* visual bug with ScreenSpaceCamera canvas on editor ([ec9ac44](ec9ac44))
@github-actions
Copy link

github-actions bot commented May 8, 2020

🎉 This issue has been resolved in version 0.10.0-preview.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released on @preview
Projects
None yet
Development

No branches or pull requests

3 participants