BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / Oculus / Spatializer / scripts / ONSPPropagationSettings.cs

ONSPPropagationSettings.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
ONSPPropagationSettings.cs 1.3 KiB Download Raw
1/************************************************************************************
2Filename : ONSPPropagationSettings.cs
3Content : Exposes settings for Propagation
4Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved.
5
6Licensed under the Oculus SDK Version 3.5 (the "License");
7you may not use the Oculus SDK except in compliance with the License,
8which is provided at the time of installation or download, or which
9otherwise accompanies this software in either electronic or hard copy form.
10
11You may obtain a copy of the License at
12
13https://developer.oculus.com/licenses/sdk-3.5/
14
15Unless required by applicable law or agreed to in writing, the Oculus SDK
16distributed under the License is distributed on an "AS IS" BASIS,
17WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18See the License for the specific language governing permissions and
19limitations under the License.
20************************************************************************************/
21
22using System.Collections;
23using System.Collections.Generic;
24using UnityEngine;
25
26public class ONSPPropagationSettings : MonoBehaviour
27{
28 // quality as a percentage
29 public float quality = 100.0f;
30
31 void Update ()
32 {
33 ONSPPropagation.Interface.SetPropagationQuality(quality / 100.0f);
34 }
35}