재생 [Unity] 안드로이드 갤러리에서 비디오 선택 후 재생하기 2022. 6. 12. 23:45 유니티에서 안드로이드 폰의 갤러리에서 비디오를 불러와 재생하는 방법이다. 1. UnityNativeGallery 유니티 패키지 다운로드 후 설치 https://github.com/yasirkula/UnityNativeGallery GitHub - yasirkula/UnityNativeGallery: A native Unity plugin to interact with Gallery/Photos on Android & iOS (save and/or load A native Unity plugin to interact with Gallery/Photos on Android & iOS (save and/or load images/videos) - GitHub - yasirkula/UnityNativeGalle.. [Unity] 배경 음악 랜덤 플레이 2019. 8. 11. 00:15 게임 플레이 시, 여러 개의 배경 음악을 랜덤으로 계속 플레이 하는 방법 스크립트 작성 using System.Collections; using System.Collections.Generic; using UnityEngine; public class BGMplayer : MonoBehaviour { public AudioClip[] Music = new AudioClip[4]; // 사용할 BGM AudioSource AS; void Awake() { AS = this.GetComponent(); } void Update() { if (!AS.isPlaying) RandomPlay(); } void RandomPlay() { AS.clip = Music[Random.Range(0, Music.Len.. 이전 1 다음 1/1