1.3.0
Small CCK update to interface VideoPlayers. The reasoning for interfacing VideoPlayers is explained more in Hypernex.Unity 2024.05.1b's changelogs.
Changes
- Added
VideoPlayerDescriptor- A user-managed component that allows creators to define what a VideoPlayer is in a world.
- Added
IVideoPlayer- Interface for creating and managing a VideoPlayer solution. Will be used to expand beyond Unity's built-in video players.
Component Changes
VideoPlayerDescriptor
The VideoPlayerDescriptor is a new component for World Creators to use. It allows creators to define a VideoPlayer to be supported by all IVideoPlayer types registered in Hypernex.Unity. The setup is simple and only has few values needing configured.
- Create a Plane (or whatever desired surface)
- Really, anything with a
Renderercomponent works
- Really, anything with a
- Add the
VideoPlayerDescriptorcomponent to the GameObject- It does not have to be on the same GameObject as the Renderer
- Input all
Renderer(s) into theVideoOutputsList. - (Optional) Link an
AudioSourceto theAudioOutputfield. - (Optional) Toggle
IsEmissivedepending on if you want the EmmisionMap field in your shader to be set to the Video Texture- If your shader's emission property is not
_EmissionMap, then be sure to set theShaderEmissionPropertyfield to what it is!
- If your shader's emission property is not