# Overview
This example uses basic Quickmatch and Peer-to-Peer networking to creating a cross-platform ball shooting game.
Quickmatch is used to find other players for a match and Networking is used to synchronize player
state such as movement of the balls.
# Application Setup
1. Open the Project in Unity 5.4.1p1 or later
2. Import the OculusPlatform Unity package (Main Menu -> Assets -> Import Package -> Custom Package)
## Rift
1. Create your Rift application on the Oculus Developer Dashboard
2. Copy the Application ID into the Project (Main Menu -> Oculus Platform -> Edit Settings -> Oculus Rift App Id)
## GearVR
1. Create the GearVR application on the Oculus Developer Dashboard
2. Move the GearVR application into the Rift application's App Grouping
3. Copy the Application ID into the Project (Main Menu -> Oculus Platform -> Edit Settings -> Gear VR App Id)
4. Copy the OSIG files for the GearVR devices you are testing to Assets\Plugins\Android\Assets
# Configure Matchmaking
1. On the Oculus Dashboard, navigate to the Matchmaking section for your App Grouping
2. Click Create Pool
3. For the Pool Key use: NORMAL_QUICKMATCH, or if you want to use a different Pool Key, update the constant in MatchmakingManager.cs
4. Choose Quickmatch mode
5. Enter 2 for Min Users and 3 for Max Users
6. Choose None for Skill Pool
7. Leave Advanced Quickmatch set to No
8. Leave Should Consider Ping Time? at the default setting of No
9. Don't add anything under Data Settings
10. Click Submit.
# Configure Leaderboards
This sample uses two Leaderboards to track player scores. One leaderboard tracks the player that has
won the most games and another tracks who achieved the highest score in a single game. Setup the leaderboards
using the following steps:
1. Navigate to your App Grouping section on the Developer Dashboard
2. Create a new leadername with the API NAME **MOST_MATCHES_WON** and sort order **Higher is Better**
3. Create a new leadername with the API NAME **HIGHEST_MATCH_SCORE** and sort order **Higher is Better**
# Configure Achievements
The sample updates an achievement that counts the number of times a player has won. Follow these steps to create an
achievement that is unlocked when the player has won 10 matches:
1. Navigate to your App Grouping section on the Developer Dashboard
2. Click on the **Create Achievement** button
3. Set the API Name to **LIKES_TO_WIN**
4. Set an appropriate Title and Description
5. Leave the Write Policy as **CLIENT_AUTHORITATIVE**
6. Leave Is Achievement Secret untoggled
7. Set the Type to **Count**
7. Set the Target to *10*
# Upload your builds
Build executables from Unity and upload them to your Application Dashboard
* Rift
1. Add the executable and data folder to a zip file
2. Upload the zip to the Alpha channel on your Dashboard
3. Set the executable name you chose in the zip file
4. Add Friends you are testing with as Subscribed Users for the Alpha channel
* GearVR
1. Create an android keystore (if you don't have one) so Unity can sign the build. (Player Settings -> Publishing Settings)
2. Upload the apk to the Alpha channel on your Dashboard
3. Each apk you upload needs a new build number (Player Settings -> Other Settings)
4. Add Friends you are testing with as Subscribed Users for the Alpha channel
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
此插件配套用于课程《VR开发核心基础》 更多开发课程,请关注网易云课堂-大徐VR课堂。 VR课堂直达地址: http://m.study.163.com/provider/480000002282025/index.htm?share=2&shareId=480000002282025 包含Oculus官方默认的手部模型和动画。 相关课程《VR开发核心基础》请通过如下传送门观看: https://space.bilibili.com/5411600/channel/collectiondetail?sid=1063706
资源推荐
资源详情
资源评论
收起资源包目录
Oculus Integration-Oculus VR开发插件-2022版本 (2000个子文件)
00000000000000001000000000000000 4KB
00000000000000002000000000000000 4KB
00000000000000003000000000000000 4KB
00000000000000004000000000000000 4KB
00000000000000004100000000000000 4KB
00000000000000005000000000000000 4KB
00000000000000005100000000000000 4KB
00000000000000006000000000000000 4KB
00000000000000006100000000000000 4KB
00000000000000007000000000000000 4KB
00000000000000007100000000000000 4KB
00000000000000008000000000000000 4KB
00000000000000009000000000000000 4KB
0000000000000000a100000000000000 4KB
0000000000000000b000000000000000 4KB
0000000000000000b100000000000000 4KB
0000000000000000c000000000000000 4KB
001d25f00342bb04098a081f2867d48d 4KB
005ab0ae8aa7f74438a5fa50f7cd50e3 75KB
005c4d80949154e5c87348bb9f5d15eb 4KB
00b54db44fb90497d8e51b542bb5d340 184KB
00f3402a2ea5bff4880c0313515240cd 39KB
0139b31452e91b94787e54aa18f7b7f0 49KB
013e95e8ef6cafb4b93fe4b6123ca5cb 4KB
01bf497d4ffdda247a59d38989e2197c 4KB
01cd264c206ae482393dc9d04b26eca0 10KB
01e02995805eb483690380a911a657e2 60KB
020d1a102a7f2a14ebf6cefe7b977303 696KB
02213405caaf04aeea7876974c06fa5a 4KB
02215b6c75ce0c241876390fdabaad25 4KB
02268a883a27b9c4abac4ee978caec4d 4KB
0242aa8515b4bc947a945a5c6df83ee9 4KB
024cd9dcd49bd8f46a6bea03aa8a21bb 4KB
02aaf4ee6ca337e4aa713c195dd164cf 4KB
02b97f80c9b7ef846baac4c18b572b6e 6KB
02d5ed157083b494e85013bad8fd5e12 15KB
02d61468f8b77ae4b92c344bc9a600fb 9KB
02f10eb32808347f78bab90e9748cdea 4KB
02f2744e317e9d94286fbaf2c8d422dc 6KB
030eb76e37b12924e96e8b450291a220 5KB
0320c45213f79b443bb412b5f3d89e4d 5KB
032142ba4fe4a53458d86dc9a8610f36 9KB
0348026b48363904bb332b53a21c35b2 49KB
034ffaae262daf943a9da067cf63070b 4KB
03780432f190e734dba71a2337880cdb 21KB
03a7614f10832d041bccff167d2a460f 10KB
03ab56c36f18cf14fbeea9ce668871a7 5KB
03cfe1746fc38ae468f5a6a910bf0379 5KB
03ffb9844f8d40e8a2f59dd2aff561eb 4KB
043787240da94fc43b1bb9d4f9920c62 3.68MB
043fbfd0ae7027742bace7a3691feb13 7KB
04488c1881da80546bca546e77f42747 5KB
0453138effcc80349b11371805f72f5b 184KB
04b1db02e87ad2a4ebf5cfe4dce3696b 4KB
05141a0b7df32dd4e914f070c2c43fdd 7KB
05345c14846707b459b5d3b4861df0df 4KB
05483dbea409e4cc8853dced3eb9f5dc 64KB
0575a1a65d0e87a42bb1a6b12bba5f1d 4KB
05b53b473302943b58b8e33c93a38dac 45KB
05f7f519769978b79b31d063a7fc6fa1 5KB
06176d9b2f03d24409bd561d15ce7e24 4KB
063774d2ff01c43719d93b2d95e298b3 23KB
063b1587caa4a47f396741f4e69d108c 15KB
0645da8344fc475469d13a6494437f8e 5KB
06b575597b644fe8ba88495149d01b66 4KB
06dc35cc5b7e7eb4ca0b52e7a0bea56d 4KB
06ef2a389c534554c848533f88dbb32c 6KB
06f8e3404d534cab82fe852ff33dad77 7KB
071fba5195bd4b04eab8668985aa1683 4KB
072450ffed31fe545a60f71f33f53916 5KB
0759c413fc9c57945a5299da385d3644 354KB
077028084dceb584798dade6c58d1978 1.35MB
07b33b297cc67c247af7596583e91597 4KB
081039a448bec6e48827af5f9b606f83 4KB
08539141953f28e439731aaf7cd5362f 6KB
085d9ec7bb5e55f48b879d93931f553e 6KB
08b0ff764adc142d79bfae7dd917cc16 9KB
090a8418d5a20b145a43f1268c633c4a 4KB
0922da4253d763644b0e48ec05dc31b7 4KB
0949ae5c873f9ea4297886eaeeb181dc 4KB
094be3701c9869d41b1dadbb555ee720 4KB
0950df82e7936c84983497630bde5b54 22KB
0975c71f0ce832c489580f5059a6118a 7KB
09bb0a17b6a704298b65be4fb08ef480 6KB
09c03a3c5049d234590b91bbc6e84462 4KB
09ce999edb4163e418caa1a898504dff 4KB
09dafd74c8e70094d891a1ec896c3e95 68KB
09e28640d754a611467eebfb261ed749 4KB
09f814575468d81448e92cb264792b5b 4KB
09fc1e67c860e68488d20df60c04cb2a 4KB
0a0d4a0431d8f1247b902263d54324d6 62KB
0a1161a2ab6569948a0aa7899197218c 5KB
0a2c7bcbdfe0a438999cb0653789cdf4 5KB
0a4f1a981c4da324fabb5b1d336aba47 4KB
0a5206cd53b21be4588ef635952929e9 4KB
0a822dba3d5c4c85b150866e5442a5ec 4KB
0b594f7f6b4bd3541845b0ad8cf03433 4KB
0b687b4832314b24db66e56bef4de820 4KB
0b95938a77128554693a8add53e022a5 47KB
0bc3b5262633562459436d35c62799ee 62KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- 2301_767428182023-09-22这个资源对我启发很大,受益匪浅,学到了很多,谢谢分享~
- 2301_767299142024-01-25感谢大佬,让我及时解决了当下的问题,解燃眉之急,必须支持!
每日出拳老爷子
- 粉丝: 1778
- 资源: 705
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功