Unityå©ãåãæã§ããã¦ã³ãã¼ããã¦ããç»åããã¿ã³ã®èæ¯ã«ããã«ã¯ï¼ãã¨ãã質åããã£ãã®ã§ã using UnityEngine; using System.Collections; public class TestButton : MonoBehaviour { [SerializeField] string imageUrl; UITexture texture; void Awake() { texture = GetComponent<UITexture>(); } IEnumerator Start() { WWW www = new WWW(imageUrl); yield return www; texture.mainTexture = www.texture; } }
{{#tags}}- {{label}}
{{/tags}}