FragMate CommunityLog in

FragMate - Software and Game Developer Community, including Resources, Forums, Marketplace & More.


descriptionPlease Help! need to make movie texture play

Hello dears,

I'm new with unity and I try to follow already many tutorials, but can't make movie texture applied to plane play. I tried the script suggested:
using UnityEngine;
using System.Collections;

public class videocontroler :MonoBehaviour {
public MovieTexture movTexture;
void Start () {

MovieTexture movie = GetComponent<Renderer>().material.mainTexture as MovieTexture;
movie.Play ();

// Update is called once per frame
void Update () {


and I don't know what's wrong with it, but I can't apply it to my plane, gives an error:
Can't add script component 'video controler' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.

pale pale pale pale pale
who Knows, what am I doing wrong?

descriptionRe: Please Help! need to make movie texture play

I think you've given a different name to the file.
should as in the "public class videocontroler: MonoBehaviour{"
If you have renamed in video controler does not recognize the defined class.


Thanks!!! That worked! cheers There was a space in between indeed, feel so stupid Embarassed
Permissions in this forum:
You cannot reply to topics in this forum