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

Android exception upon instantiation: Object reference not set to an instance of an object. #687

Closed
dibenedetto opened this issue Apr 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dibenedetto
Copy link

dibenedetto commented Apr 2, 2024

EDIT:

The problem was a missing shader in the Android build.

Describe the bug
In an Android smartphone and in a Unity AR application, asset loading (importer.Load(path)) goes weel but an "Object reference not set to an instance of an object" exception is thrown when instantiating it (importer.InstantiateMainSceneAsync(instantiator)).
The problem is not present in the Editor on a Windows 11 platform.

Files
Fails with both .gltf and .glb files, es. this one.

To Reproduce
Try instantiating it on a standard application.

Expected behavior
An instantiation of the asset is expected.

Screenshots
No screenshots.

Desktop (please complete the following information):

  • glTFast 6.2.0
  • Unity Editor 2022.3.4f1
  • Render Pipeline standard
  • Platform: Windows 11

additionally (if significant for the bug):

  • Device: ONEPLUS A6003
  • OS: Android 11

Additional context
No additional information.

@dibenedetto dibenedetto added the bug Something isn't working label Apr 2, 2024
@dibenedetto
Copy link
Author

The problem was a missing shader in the Android build, namely glTF/PbrMetallicRoughness.

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

No branches or pull requests

1 participant