Replace naudio.dll with code to support multiple platforms
This commit is contained in:
@@ -15,6 +15,8 @@ public class UmaViewerUI : MonoBehaviour,FaceLoadCallBack
|
|||||||
private UmaViewerMain Main => UmaViewerMain.Instance;
|
private UmaViewerMain Main => UmaViewerMain.Instance;
|
||||||
private UmaViewerBuilder Builder => UmaViewerBuilder.Instance;
|
private UmaViewerBuilder Builder => UmaViewerBuilder.Instance;
|
||||||
|
|
||||||
|
public CanvasScaler canvasScaler;
|
||||||
|
|
||||||
//normal models
|
//normal models
|
||||||
public ScrollRect CharactersList;
|
public ScrollRect CharactersList;
|
||||||
public ScrollRect CostumeList;
|
public ScrollRect CostumeList;
|
||||||
@@ -62,6 +64,8 @@ public class UmaViewerUI : MonoBehaviour,FaceLoadCallBack
|
|||||||
Instance = this;
|
Instance = this;
|
||||||
AudioPlayButton.onClick.AddListener(AudioPause);
|
AudioPlayButton.onClick.AddListener(AudioPause);
|
||||||
AudioSlider.onValueChanged.AddListener(AudioProgressChange);
|
AudioSlider.onValueChanged.AddListener(AudioProgressChange);
|
||||||
|
if (Application.platform == RuntimePlatform.Android)
|
||||||
|
canvasScaler.screenMatchMode = CanvasScaler.ScreenMatchMode.Shrink;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void HighlightChildImage(Transform mainObject, Image child)
|
public void HighlightChildImage(Transform mainObject, Image child)
|
||||||
|
|||||||
Reference in New Issue
Block a user