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

.glb file fail to import to Unity #7

Open
DeepChallengerVR opened this issue Dec 19, 2022 · 0 comments
Open

.glb file fail to import to Unity #7

DeepChallengerVR opened this issue Dec 19, 2022 · 0 comments

Comments

@DeepChallengerVR
Copy link

DeepChallengerVR commented Dec 19, 2022

Issue

  • OpenBrush .glb fails to import to Unity.
  • On first time opening the unity project with added .glb files you will see below error message.
  • Subsequent Unity project opens you will likely not see the below error message, but you will see your .glb files have not imported.

Error message
InvalidOperationException: Cannot find TiltBrushToolkitSettings.asset TiltBrushToolkit.TbtSettings.get_Instance () (at Assets/TiltBrush/Scripts/TbtSettings.cs:38)

Steps to reproduce

  1. Have a .glb file exported via OpenBrush
  2. Install this SDK in your Unity project
  3. Import the .glb file and add to scene. Observe the file imports correctly and you can see the .glb model in your scene.
  4. Copy and paste your Unity project into another directory, open this 'new' copy of your project.
  5. Observe issue.

Workaround

  • to make your life easier, in your Unity project keep all of your .glb / tiltbrush files in folders dedicated to tiltbrush files.
  • For this example steps to fix, I assume all of your .glb files are stored in Assets/3dModels/TiltBrush
    Steps to fix issue when it appears:
  • Copy the contents of Assets/3dModels/TiltBrush to somewhere on your PC outside of your Unity project
  • In Unity, delete the contents of Assets/3dModels/TiltBrush
  • Drag and drop the contents from Windows File Explorer back into Assets/3dModels/TiltBrush
  • You should not see any .meta files changes and your local install of the unity project should not have this issue anymore.

This issue was originally logged on tilt-brush-toolkit with no resolution other than workaround googlevr#43

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

1 participant