microsoft / MixedReality-QRCode-Sample

A single repository of Mixed Reality samples in Unity.
MIT License
101 stars 29 forks source link

Unity .meta files missing in repo #4

Closed Xriuk closed 2 years ago

Xriuk commented 2 years ago

The Unitys .meta files are missing for this repository, this invalidates the created prefabs as Unity loses track of the referenced scripts. Unity .meta files should be stored in version control.

AdrianBravent commented 2 years ago

Yeah, any idea of the prefab scripts?

PablOnk commented 2 years ago

Package folder doesn´t exists. Please help

ABinettiCap commented 2 years ago

Same issues ... QRCodeManager prefab and Axis prefab are missing.

cheles commented 2 years ago

@ABinettiCap they do exists under Prefabs folder. there seems to be a mismatch between guids. we will check this further. In Unity, you can just drag&drop those 2 from Prefabs folder to Hierarchy column

Xriuk commented 2 years ago

@ABinettiCap they do exists under Prefabs folder. there seems to be a mismatch between guids. we will check this further. In Unity, you can just drag&drop those 2 from Prefabs folder to Hierarchy column

You don't understand, if in Unity you delete the .meta files, Unity loses all the references between components, invalidating every prefab, that's why they show missing components on them, making them unusable. Of course you could build the prefabs back with the scripts, but that's not the point...

KiriUbu commented 2 years ago

i have a simular Problem. All the references to the scripts are also gone. Could may be some just tell me with scripts should be connected to witch Prefab?

Screenshot 2022-05-21 150235

cheles commented 2 years ago

you are right @Xriuk @KiriUbu. we are working on fixing this. meanwhile, QRCodesManager should look like this: image

FireDragonGameStudio commented 2 years ago

Same problem here, where all prefabs and script references are broken. :/

cheles commented 2 years ago

@FireDragonGameStudio we are working on this. meanwhile, you can remove those 2 prefabs and re-add them to the project. QRCodesManager scripts should look like above screenshot.

FireDragonGameStudio commented 2 years ago

Thx, will try it. Unfortunately the materials and QRCode prefab are broken as well. I'll try to figure it out, while waiting for the fix from your side :)

cheles commented 2 years ago

or you can clone this repo and work with it until this one is fixed

petergu684 commented 2 years ago

This could be easily solved by deleting the .gitignore file in the root, which doesn't seem to do anything other than adding .meta into ignore list.

SashelI commented 2 years ago

you are right @Xriuk @KiriUbu. we are working on fixing this. meanwhile, QRCodesManager should look like this: image

Hi, Could you provide the scripts that must be on the "QRCode" prefab aswell ? thanks

cheles commented 2 years ago

image meanwhile, you can use https://github.com/chgatla-microsoft/QRTracking sample built with MRTK 2.5 and Unity 2020 / Built-in XR or https://github.com/yl-msft/QRTracking on OpenXR / Unity 2020

we will update this sample to MRTK 2.8 and Unity 2020. can't upgrade further than 2021 as Built-in XR was deprecated for OpenXR.

SashelI commented 2 years ago

Thanks !

Heavenswind commented 2 years ago

has this been updated to Unity 2021? what is the latest versions of Unity + XR and MRTK we can use ?

cheles commented 2 years ago

has this been updated to Unity 2021? what is the latest versions of Unity + XR and MRTK we can use ?

answered 2 comments before

chgatla-microsoft commented 2 years ago

project updated.