Author Topic: Video Support  (Read 2262 times)

Evorlor

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Video Support
« on: August 30, 2014, 01:27:34 PM »
I think I already know the answer (no), but I figured I would give it a shot.

Is there video support in NGUI?  As in, can I use NGUI to have a full screen video play in my game?  I am aware that Unity has this feature somewhere, but I just like NGUI so much, I was hoping I could do it there.

[On a side note...wow!  NGUI is amazing!]

r.pedra

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 20
  • Posts: 131
    • View Profile
Re: Video Support
« Reply #1 on: August 30, 2014, 05:37:29 PM »
Hmmmm I would try to capture the video in a RenderTexture and display this RenderTexture in a  UITexture object but I don't know if it will works.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Video Support
« Reply #2 on: August 31, 2014, 07:23:59 AM »
You should be able to use a MovieTexture and assign it to a UITexture

http://docs.unity3d.com/ScriptReference/MovieTexture.html

Evorlor

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Video Support
« Reply #3 on: August 31, 2014, 10:45:14 AM »
I don't have pro, so cannot use movie textures

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Video Support
« Reply #4 on: September 01, 2014, 06:44:00 AM »
Then you can't play movies.

You *might* be able to get it to play natively fullscreen above the unity view, but that's as far as you'll get with non pro.