However, westillrequireanOVRPassthroughlayertoactuallybeabletostartourexperienceinPassthroughmode.
Keepinmind, however, ifyouwouldliketobuildyourapptoyourQuestdevice, youwillstillneedtoenabletheAnchorsandenabletheSceneSupportaswellasthePassthroughmode.
Let's nowlookatourMRUKprefabthatcontainsthemaincomponentMRUK, whichis a singletonandthereforeshouldonlyexistoncewithinourscene.
Firstly, wehave a SceneLoadedevent, whichletsuseasilyexecuteanypublicmethodfromhereonceourscenehasloaded.
Thiscanleadto a numberofissueswithnetworking, physics, rendering, etc.
So, wedefinitelywanttokeepthisboxchecked.
Next, welookatthescenesettings.
Ourdatasourcecaneitherbe a roomprefabwhichisprovidedtousbytheutilitykitalready, oritcanbethescenemodelthatwehavecreatedinsideourheadsetalready.
Thereis a thirdoptioncalledDevicewithPrefabFallback, whichmeansifwehaven't setup a roomscaninsideourquesthome, ourapplicationwillmakeuseoftheroomprefabsthattheutilitykitprovidedtous.
Thisisnotonlybeneficialforwhenwecannotscanourownroom, butalsoifwewanttotestourappin a varietyofroomsthatcouldbesimilartoourend-users' rooms.
Next, wehave a roomindexand a listofroomprefabsthatcanbeloaded.
Settingtheroomindextominusonemeansthat a randomroomprefabwillbeloaded.
Wecanalsoquerytheclosestseatposition, orvisualizewhereourraycastishittingthemodel, forexampletoget a betterunderstandingofhowusersareinteractingwithourapp.
Metareallymadeitsupereasyforustoquery a bunchofscenedata.
Butlet's lookat a fewmoresamplestocoverallthemostimportantfeaturesofthisamazingutilitykit.
WeopentheFindFloorZonesceneandopentheFindFloorZonemodule, becausethenextcomponentwetake a lookatistheFindSpawnPositions.
Thisisanexcellenttoolforwhenwehaveourownprefabs, let's say a modelof a smallbuildingforanarchitectureapplication, andwewanttocheckwhereweareabletoplaceitwithoutoverlappingwithourfurniture.
So, wewouldreferenceourprefabintheSpawnPrefabfield, anddependingonthesizeofit, itwillthendecideonwhereandhowoftenitcanbeplacedonoursurface.
Let's givethislastscene a tryandseeourroomwiththosewallsweaddedasprefabs.
Wecanseethatourrealroomturnedinto a completelyvirtualroom.
Thisallowsustomodifyourusers' roomsinthestyleofourgame, whichopensup a hugevarietyofgameplay.
And I can't waittoseewhatallofyouarebuildingwiththeMixedRealityUtilityKit.
Alrightguys, andthat's itforthisvideo.
I hopeyoulearned a lotaboutMRUKtoday, andifyou'reenjoyingthiscontent, pleasetake a secondtolikeandsubscribetothischannel, considersubscribingtomyPatreonifyouwanttogetallthesourcecodesofeachtutorial, andwearehappytowelcomeyouinourDiscordcommunity, andfeelfreetojoinifyouhaveanyquestions.
Thankyousomuchforwatching, andseeyouinthenextone.
MicrosoftMechanicswww.microsoft.com
HiXRdevelopers, todaywe'regoingtotalkabout a newtoolfromMetawhichiscalledtheMixedRealityUtilityKitorMRUKforshort.
Subtitles and vocabulary
Click the word to look it upClick the word to find further inforamtion about it