【3Dゲームエンジン】Unity質問スレッド28 [無断転載禁止]©5ch.net
■ このスレッドは過去ログ倉庫に格納されています
0076名前は開発中のものです。
2017/02/01(水) 09:53:23.60ID:cq6X5lH4cubeの名前をMAP、MovieTextureの名前をMapTextureとして、作っています。
そして、映像を流す為には、「映像を流す」という指令のC#scriptが必要との事ですので、それを付けてみたのですが、どうやら適切にかけておらず、動きません。
どこが駄目なのかご指導してもらえますと助かります
using UnityEngine;
using System.Collections;
public class Map : MonoBehaviour
{
public MovieTexture MapTexture;
// Use this for initialization
void Start () {
// this line of code will make the Movie Texture begin playin
((MovieTexture)GetComponent<Renderer>().material.MapTexture).Play();
}
// Update is called once per frame
void Update () {
}
}
■ このスレッドは過去ログ倉庫に格納されています