UniVRMedia
Stream 360 videos in Unity using its VideoPlayer component entirely through code and not editor setup.
Install / Use
/learn @adrenak/UniVRMediaREADME
UniVRMedia
Stream 360 videos in Unity using its VideoPlayer component entirely through code and not editor setup.
Purpose
Unity introduced the much anticipated video player component in version 5.6
This official Unity blog illustrates how to use the new video player to play 360 videos, however that is a skybox + RenderTexture approach, which may be expensive on mobiles, (I don't know).
Another way is to have a camera in the centre of a sphere that has normals pointed inside and the Video Player component, but this requires manual setup.
UniVRMedia automates the manual workflow. It essentially follows these steps:
- Creates a primitive sphere at a position and inverts its normals
- Places a camera at the centre of the sphere
- Uses the Unlit Texture shader on the sphere surface and changes the color to your choice
- Gives you full control over playback by allowing access to the Video Player component in use
- Automatically disables all cameras when the 360 video starts and resets them back when the video is done
- Set the time scale to 0 and then back to its original value when the video is done
How to use
- Check out
UniVRMedia/Demo/DemoScenefor an example - Use the
UniVRMedia.Optionsclass to set initialization values for the 360 video player. The class is also serializable in the editor. - Use
UniVRMedia.Videoto access the video player component in use
Notes
- Currently only supports 360 panoramic videos
- Sample video used : Visit the Philippines
Contact
Related Skills
qqbot-channel
349.2kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.3k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
349.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
3.0kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
