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

Not compatible with Unity 6 #1924

Open
tomCarnevale opened this issue Jul 16, 2024 · 13 comments
Open

Not compatible with Unity 6 #1924

tomCarnevale opened this issue Jul 16, 2024 · 13 comments

Comments

@tomCarnevale
Copy link

tomCarnevale commented Jul 16, 2024

Opening the examples with Unity Version 6000.0.10f1 causes an error when attempting to create any textures. User is met with pink error textures.

Failed to create texture because of invalid parameters.

From UnityTile.cs
Line 294

if (_rasterData == null)
{
	_rasterData = new Texture2D(0, 0, TextureFormat.RGB24, useMipMap);
     _rasterData.wrapMode = TextureWrapMode.Clamp;
}

However, this issue is not present in 2022.3

@tomCarnevale
Copy link
Author

I had some additional problems in my own project, but I was able to resolve this issue by instantiating the Texture2D with a width and height of 1, since apparently the API was updated to disallow widths and heights of 0.

Cannot be sure if this is a reasonable fix for release, but give it a try

@maria-ny
Copy link

maria-ny commented Sep 18, 2024

_rasterData = new Texture2D(1, 1, TextureFormat.RGB24, useMipMap);

Thank you, @tomCarnevale, your solution worked for me!

@AndresG123
Copy link

AndresG123 commented Oct 19, 2024

worked for me! Unity 6 and MapBox its ready!

@liquidbuddha
Copy link

liquidbuddha commented Oct 21, 2024

Brilliant. This fix worked for me as well. Thank you.

@VisnevschiV
Copy link

VisnevschiV commented Jan 9, 2025

@AndresG123 did u manage to build that on Unity6? i get a
"Building Library\Bee\artifacts\Android\d8kzr\libil2cpp.so failed with output:
ld.lld: error: undefined symbol: GetBlendShapesInfo"
and can't get the end of it

@AndresG123
Copy link

AndresG123 commented Jan 9, 2025

@VisnevschiV Yes, im using unity 6 and mapbox function perfect, although im working for IOS build not for Android at this moment

@VisnevschiV
Copy link

@AndresG123 would you mind to share with me the versions of ARCore/ARFoundation/ARKit/Unity/MapBox you are using? i expect the problem to be with one of them

@davide1a
Copy link

That fix in UnityTiles.cs solved my errors, and it's now working, but my maps are still rendering pink (only the map, the buildings are ok). I'm trying to upgrade my app from 2022.3, and tried the render pipeline converter, but I guess that doesn't work on the maps as they are loaded later??

@VisnevschiV
Copy link

@davide1a if you use the Map prefab, go AbstractMap(Script) > General > Others > TileMaterial . tehre is a Terrain Material, select that and change it to unlit, or lit, whateer works best for ur needs, it should fix the problem

@davide1a
Copy link

Thank you! I was searching for ages trying to find the material it used, but it wasn't showing up in the project window.

@VisnevschiV
Copy link

@davide1a Np, now welcome to the "how do i get a build out of that" team

@davide1a
Copy link

@davide1a Np, now welcome to the "how do i get a build out of that" team

That's why I had to upgrade it to Unity 6! Got it all working on my phones, and went to try and load it onto Google Playstore to find out I have to use API level 34 now. So hopefully not too much more headache now...

@davide1a
Copy link

@VisnevschiV I take that back!!! If you have any ideas on - this thread I'd appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants