Mar
6
2024
6
2024
Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Steps
- Customize your project template package.json file (using 7zip in Administrator mode)
- Project templates are inside Unity editor installation folder (like: 2022_3\Editor\Data\Resources\PackageManager\ProjectTemplates\)
- Example package.json here to add video (and hide default preview image)
https://gist.github.com/unitycoder/cc472faec83f4941d032e2010ce889ea - Remember to close Hub completely (so that it reloads packages)
- Whats happening? This line has HTML & CSS inside description and Unity hub renders them.. The CSS is for hiding default project template thumbnail.
"description": "Some description here.. <video width='320' height='240' autoplay style=''><source src='https://cdn.mtdv.me/video/rick.mp4' type='video/mp4'></video><style>.template-preview__image{display:none !important;}</style>",
WARNING!
- This means, if you download custom project templates from web/unknown sources, they might “call home” with custom html running on template selection.. (capture your IP address or possible more..) **I did report this to Unity Bug Bounty earlier, but got reply that its not applicable..
VIDEO
Related Posts
Leave a comment
Recent posts
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
- Convert LAS/LAZ/PLY pointclouds to GLTF (GLB) Point Meshes (standalone converter)
Recent Comments
- on Mesh Exploder (sources)
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
Support my work at Bags.fm:
Coin:
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
Subscribe to Blog via Email
Tag Cloud
2d
3D
AI
algorithm
android
asset
build
color
custom
demo
editor
effect
fake
free
game
generator
greasemonkey
indie
javascript
light
line
ludumdare
mesh
paint
particles
physics
plugin
procedural
proto
prototype
script
sea
shader
shadow
sprite
terrain
texture
tutorial
ui
unity
vertex
visibility
water
waves
webgl
An article by











