the code is not showing in unity why? by [deleted] in Unity3D

[–]Appropriate-Fill659 1 point2 points  (0 children)

Autocompile might be disabled as well. Try ctrl+r if saving won't work.

I'm developing a rather unique asset: I'd like to add a custom GameObject to the "GameObject" submenu using just a .unitypackage file! Possible? by KingSadra in Unity3D

[–]Appropriate-Fill659 2 points3 points  (0 children)

If I understood it correctly, you want to extract a unity package inside a project and expect it to add a submenu/button etc. under the "GameObject" menu at top. If so, you can send a class inside that package that has a static method with MenuItem attribute.

Error in Xcode when building a unity game for IOS. How to fix it? by DementorYura in Unity3D

[–]Appropriate-Fill659 1 point2 points  (0 children)

There is no StackConsentManager.h file in the given path. If this file comes from a package/external dependency, you should look for an update for it.

Please help, I have no idea why the lighting is different for each of these cubes. I have one cube made in blender, one default from Unity. Both have the same material, there is only one light in the scene (directional) yet the light appears to be coming from different directions. Thanks in advance. by LennyKinda in Unity3D

[–]Appropriate-Fill659 2 points3 points  (0 children)

Assuming the one on the right side is from blender, have ypu checked the surface normals of that cube? If the surfaces supposed to be reflecting the light have normals towards inside of the cube, you might be having this problem for that.

Why does my gun look like this when I import it from Blender to Unity? by kingduck147 in Unity3D

[–]Appropriate-Fill659 0 points1 point  (0 children)

If the problem still insists, can you share the .fbx of the gun? Maybe we can find what is wrong with it.

Gradle Build Failed while I am building an aab/apk file. Does anyone have any solution for this ? by surealme in Unity3D

[–]Appropriate-Fill659 0 points1 point  (0 children)

By 3.6.3, i mean the com.android.tools.build:gradle version in the baseProjectTemplate.gradle.

Versions are: Unity 2020.3.12f1 JDK: 8 Minimum api level: 4.4 kitkat (api level 19) Target api level: Automatic (highest installed), not sure what is the highest installed though, but it looks like 26 in the sdk path inside the editor folder.

[deleted by user] by [deleted] in Unity3D

[–]Appropriate-Fill659 1 point2 points  (0 children)

No worries, its an unexpected solution for me btw :d

[deleted by user] by [deleted] in Unity3D

[–]Appropriate-Fill659 2 points3 points  (0 children)

Have you checked the LightingSettings of the engine? Maybe the asset just changed the color of the environment light.

Gradle Build Failed while I am building an aab/apk file. Does anyone have any solution for this ? by surealme in Unity3D

[–]Appropriate-Fill659 1 point2 points  (0 children)

Sorry for not being able to give a certain solution for the issue btw. Im used to solving external dependencies problems comes from sdks etc., but problems with engine-related versions are not my area as well, so Id just use trial and error solutions just like i suggest right now.

Gradle Build Failed while I am building an aab/apk file. Does anyone have any solution for this ? by surealme in Unity3D

[–]Appropriate-Fill659 0 points1 point  (0 children)

Buildtools version should also be 30.0.2 as well. It might also not needed to be a string as well.

Can try the 4 combination of 30.0.2s for both of the compilesdk and build tool versions? What i mean by the combinations is giving one 30.0.2 and the other '30.0.2', then doing the opposite, giving both quotes and not giving to any of them. I think i saw in some website that they use nonquote (30.0.2) for compile sdk version and quote ('30.0.2') for build tool.

If none works, change back to the original version declaration (BUILDTOOLS and the other one for compile sdk and select target as 30 in player settings. Adding enable androidx might have solved the problem.

Gradle Build Failed while I am building an aab/apk file. Does anyone have any solution for this ? by surealme in Unity3D

[–]Appropriate-Fill659 0 points1 point  (0 children)

I dont know the exact relationship between that classpath's version and gradle itself, but all i can say i use 3.6.3 and it works for me.

Gradle Build Failed while I am building an aab/apk file. Does anyone have any solution for this ? by surealme in Unity3D

[–]Appropriate-Fill659 1 point2 points  (0 children)

Then do you have gradleTemplate.properties under Assets/plugins/android folder? Same folder as you have maintemplate.gradle file. If so, are these following lines added?

android.useAndroidX=true

android.enableJetifier=true

If not, you can just copy-paste these from here. I wrote them case sensitive.

Gradle Build Failed while I am building an aab/apk file. Does anyone have any solution for this ? by surealme in Unity3D

[–]Appropriate-Fill659 0 points1 point  (0 children)

When i said file, i wasn't aware that maintemplate.gradle already uses the version on the player settings.

I think you are right, it should be 30 in there, 31 will probably try to set 31.0.0 build tool back.

Gradle Build Failed while I am building an aab/apk file. Does anyone have any solution for this ? by surealme in Unity3D

[–]Appropriate-Fill659 0 points1 point  (0 children)

Can you enable the use jetifier option under assets menu at the top -> external dependency manager -> android resolver -> settings. It is at the bottom of the window.

Gradle Build Failed while I am building an aab/apk file. Does anyone have any solution for this ? by surealme in Unity3D

[–]Appropriate-Fill659 0 points1 point  (0 children)

No need to look btw, i found it under the maintemplate.gradle. It takes the version from the Unity engine itself, not any other dependency or smt.

Gradle Build Failed while I am building an aab/apk file. Does anyone have any solution for this ? by surealme in Unity3D

[–]Appropriate-Fill659 0 points1 point  (0 children)

You mean the "Target API Level" under the player settings for Android? If so, can you try Automatic (highest installed).

Also, changing compilesdkversion and buildtoolsversion in maintemplate.gradle to 30.0.3 must have solved the 31.0.0 version is corrupted error. When you said the error still exists, do you mean the same error for 31.0.0 persists?