Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How to I get a video to play on a mesh

Discussion in 'Editor & General Support' started by iknowmyself, Sep 15, 2022.

  1. iknowmyself

    iknowmyself

    Joined:
    May 9, 2022
    Posts:
    8
    I would like part of my mesh to play a video. For example, I have a head and I want the cheek (or other spots) to play video on them. I have tried:
    1. Applying a material that uses a render texture playing the video, this just results in the entire head just changing color of like a single pixel of the video. I have tried tiling it and it only changes the effect slightly.
    2. Using a projector: https://docs.unity3d.com/Manual/class-Projector.html . This results in either not working at all on the mesh, or the same effect as 1. The projector works on spheres, cubes, planes, etc...

    What could I try that could work? I tried using some lower poly meshes to see if they would work, but they create the same effect as with the high resolution head I am using.

    Thanks in advance for the help.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,954
    Sounds like you didn't unwrap the model properly. Look up UV unwrap.

    You would probably want to make the model with multiple separate models, OR multiple separate meshes, so the video only plays where you want it on a single material.
     
    iknowmyself likes this.
  3. iknowmyself

    iknowmyself

    Joined:
    May 9, 2022
    Posts:
    8
    That worked perfectly, did a smart unwrap in blender. Thank you!!!
     
    Kurt-Dekker likes this.