Skip to content

Ready to Use YouTube Playables SDK for Unity WebG#39

Open
crudeGithub wants to merge 3 commits into
google:mainfrom
crudeGithub:main
Open

Ready to Use YouTube Playables SDK for Unity WebG#39
crudeGithub wants to merge 3 commits into
google:mainfrom
crudeGithub:main

Conversation

@crudeGithub

Copy link
Copy Markdown

Summary

Integrates the YouTube Playables Web SDK wrapper into the project to support YouTube WebGL playable requirements.

Key Changes

  • YouTube SDK Bridge: Added C# wrappers and JS plugins (.jslib) for game ready/lifecycle, cloud saves, scores, ads, audio sync, and pausing.
  • Automatic WebGL Build Patching: Added an editor build postprocessor to automatically inject the YouTube SDK script and initialization hooks into the built index.html.
  • Editor Fallbacks: Implemented fallback saving (via PlayerPrefs) and ad simulators to allow local development and testing.
  • Documentation & Samples: Included step-by-step setup guides (INTEGRATION_GUIDE.md) and a sample script for integration references.

Verification

  • Verify build output contains the YouTube script in index.html.
  • Verify Editor testing falls back to PlayerPrefs and does not crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant