Update scene and settings
This commit is contained in:
parent
a1f5323758
commit
916e250fa8
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,30 @@
|
||||||
|
using Microsoft.MixedReality.Toolkit.UI;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class ScrollablePagination : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField]
|
||||||
|
private ScrollingObjectCollection scrollView;
|
||||||
|
|
||||||
|
public ScrollingObjectCollection ScrollView
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (scrollView == null)
|
||||||
|
{
|
||||||
|
scrollView = GetComponent<ScrollingObjectCollection>();
|
||||||
|
}
|
||||||
|
return scrollView;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
scrollView = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ScrollByTier(int amount)
|
||||||
|
{
|
||||||
|
Debug.Assert(ScrollView != null, "Scroll view needs to be defined before using pagination.");
|
||||||
|
scrollView.MoveByTiers(amount);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2be9efbe3616d5140ab50246321b3031
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -138,9 +138,7 @@ PlayerSettings:
|
||||||
16:9: 1
|
16:9: 1
|
||||||
Others: 1
|
Others: 1
|
||||||
bundleVersion: 0.1
|
bundleVersion: 0.1
|
||||||
preloadedAssets:
|
preloadedAssets: []
|
||||||
- {fileID: 3919825601010146741, guid: 3f9164acd8abd4446a837f0de5c295d6, type: 2}
|
|
||||||
- {fileID: -8850236580838408871, guid: c00f5eb6c0921504a9911f55c664e377, type: 2}
|
|
||||||
metroInputSource: 0
|
metroInputSource: 0
|
||||||
wsaTransparentSwapchain: 0
|
wsaTransparentSwapchain: 0
|
||||||
m_HolographicPauseOnTrackingLoss: 1
|
m_HolographicPauseOnTrackingLoss: 1
|
||||||
|
|
Loading…
Reference in New Issue