wiki.sine.space | sinespace

Embedded Video

From wiki.sine.space
Revision as of 23:12, 21 March 2018 by Mrgnarchr (Talk | contribs) (Adding required components)

Jump to: navigation, search

Creating a video player

Sine Space allows for creators to embed Youtube videos onto objects they create in Unity with The Editor Pack. The Embedded Video (Script) component allows for the creator to embed Youtube and other video content into Unity Materials.

To successfully work with the Embedded Video (Script) component in Sine you will need to have the following components added to your object

For this walk through, I am using a standard cube prefab.

Adding required components

Unity & video components

• Video Player

• Audio Source

• Embedded Video (Script)

• A New Material

The required Sine components

• Virtual Good

• Room Furniture

Embedded Video 1.PNG

Configuring the components

Video Player

Select the preferences you desire

Render mode: Material Override

Material Property: _MainTex

Audio Source

Basically, leave as is or configure to your own preferences

Embedded Video

Auto Play: Select if you desire, otherwise it will play on click

URL: Enter the URL of the video you wish to play

New Material

Create a new blank Material and add it to the object

Attach the Material to the Mesh Renderer component

Attach the Material to the Embedded Material component under Target Material

Virtual Good

Select the preferences you desire here

For this example, we’re using the Furniture/TV category

Complete the rest of the Virtual Good component in preparation for upload

Furniture

Select the furniture preferences you desire

Please note: You can theoretically attach video playback to any object type you wish.