Skip to main content
Version: 0.4.1

Custom shaders on Apple devices

Players on iPhone, iPad, Mac and Apple Vision Pro can see your world's custom shaders exactly as you made them. Cloud Shader Conversion, included with StagePass, prepares your world's shaders for Apple devices after every upload. You don't install anything extra, build anything extra or change your shaders: upload as usual, and StageTime does the rest.

The same world on an iPad, three ways:

With Cloud Shader Conversion. Fire, rain, hologram, Shader Graph dissolve, water with and without foam, two-pass glass, soft-particle smoke, and the Poiyomi, lilToon and Unity Toon Shader toon shaders, all as they look in the Editor.

A shader showcase world on an iPad after Cloud Shader Conversion: every effect draws as in the Editor

Basic compatibility (no conversion, below). Every custom shader becomes a plain URP material. The world stays usable, but effects are lost, and particle effects such as fire, rain and smoke become solid shapes.

The same world with basic compatibility: custom materials are plain and opaque, and particles are solid white shapes

Without either. Shaders that weren't built for Apple devices draw magenta. Here that's every material in the world, its sky included. StageTime never shows a world like this: an unconverted world gets basic compatibility.

The same world with no shader support for Apple devices: the whole screen is magenta

Who gets it​

  • StagePass: every world version you upload with this SDK is converted automatically when the upload finishes. Accounts with creator access get it too.
  • Without StagePass: your world still works on Apple devices with basic compatibility (below). If you get StagePass later, press Convert now on a version you uploaded with this SDK; you don't have to upload it again.
  • If your StagePass ends: versions that were already converted stay converted. New uploads get basic compatibility.
  • Players need a StageTime version that supports converted shaders. Older StageTime apps can't open worlds uploaded with this SDK; players need to update StageTime.

Basic compatibility​

What Apple devices show for a world version that isn't converted (no StagePass, still converting, or the conversion failed):

  • Materials that use URP's own shaders (Lit, Simple Lit, Unlit, particles) and StageTime's shaders look right.
  • Every other shader is replaced with URP Lit, or URP Unlit when its name says Unlit, keeping the material's main texture and colour. Sky shaders become Skybox/Procedural.
  • So custom effects (water, glass, holograms, dissolves, toon shading, outlines) look flat or plain, and particle effects with custom shaders become solid shapes, but nothing draws magenta and the world stays playable.

If you tick an Apple platform in the Build Window's Platforms section, devices on that platform load the bundle you built for them instead, conversion or not (visionOS needs Unity on a Mac).

What the SDK uploads​

To convert your shaders, Build & Upload sends these with your world. They count toward your storage:

FileWhat's in it
A shader bundle per platformEvery shader your world uses, next to that platform's world bundle
shader-src.zipYour world's shader files, Shader Graphs and sub graphs, the files they #include, custom function files and the graphs' default textures, each with its .meta file. For a shader from a git, local or embedded package, also that package's package.json
upload.jsonThe Unity version, the packages your shaders come from, the shaders, the keyword sets your materials use, the shader variants your Android build compiled, and the scene's lighting settings (fog, lightmaps, Adaptive Probe Volumes)

The SDK never uploads scripts, assemblies, assembly definitions or any other asset (models, audio, scenes, textures other than graph defaults). Shaders from Unity's own packages, such as URP and Shader Graph, aren't uploaded. StageTime uses your shader sources only to convert your world; they are never shared with players or anyone else.

The SDK uploads these files with or without StagePass, so a version can be converted later without uploading it again.

Requirements​

  • URP shaders only. A Built-in render pipeline shader (Standard, Legacy, Mobile) doesn't work on any platform. The build lists each one with the materials that use it, in the report and in the Build Window: WARNING: URP can't draw shader '...': it has no URP pass .... Change those materials to a URP shader or a Shader Graph. See Shaders and materials. Some shader packs come in two editions, Built-in and URP: use the URP one.

  • An Android build. Conversion starts from your Android build. Build & Upload always builds Android.

  • No geometry or tessellation shaders. Apple devices don't support them, so they fail there whatever else you do.

  • Includes the build can find. An #include must point at a file in your project or in a package. The build warns about one it can't find, or one of a file type it can't take; that shader may then fail to convert.

  • Keep within the limits:

    LimitValue
    Shaders in a world256
    Keyword combinations your materials use4,096
    Shader source files2,000
    shader-src.zip32 MB (128 MB unpacked)
    Shader bundle64 MB per platform

    The build stops with a message when a world goes over one. Use fewer custom shaders and shader keywords, or simpler shaders.

  • Real-time lights: Apple devices light the world with at most 32 real-time point and spot lights in view at a time. On Mac and Apple Vision Pro, when more than 32 reach the camera's view, StageTime turns off the farthest ones while it draws. Bake your lights, or keep 32 or fewer real-time point and spot lights in view. See also Lighting.

Conversion status​

After an upload, the Build Window's Upload to StageTime section shows the conversion status of the version you just uploaded. It checks every 15 seconds while the window is open, for up to 30 minutes. Your world's page on the website's Creator tab shows it for each version. Most worlds convert within a few minutes.

Build WindowWebsiteMeaning
Apple devices: queued for conversion (position n).Queued (position n)Waiting its turn
Apple devices: converting the world's shaders...ConvertingIn progress
Ready for Apple devices.Ready for Apple devicesApple devices now show your shaders
Apple conversion failed: message, with the shader, file and lineFailed, with the same detailsApple devices use basic compatibility. See below
Apple devices: basic compatibility. Converting custom shaders for Apple devices comes with StagePass...The same, with a StagePass linkYour account doesn't have Cloud Shader Conversion
This version was uploaded with an older StageTime SDK...The sameSee Older uploads
Apple devices: not converted yet. Convert NowConvert nowNothing queued yet

Convert now and older uploads​

  • Convert now converts a version that was uploaded with this SDK but never converted, for example one uploaded before you had StagePass.
  • Versions uploaded with an older SDK can't be converted. Upload the world again with this SDK.
  • A ready conversion can't be run again. Upload a new version to change it.

When a conversion fails​

The status shows the error and, when known, the shader, file and line. Apple devices use basic compatibility for that version meanwhile.

  • An error in your shader: fix it, check it still draws in Build & Test, and upload a new version.
  • Too many shader variants ("the world's shaders need n shader variants, more than the conversion limit"), or the conversion timed out: upload the world again with SDK 0.4.1 or later. Its uploads list the shader variants your Android build compiled, and only those are converted, usually a small fraction. If it still fails, use shaders with fewer multi_compile keywords; the message names the largest ones.
  • Anything else: press Retry, in the Build Window or on the website.

Shaders that fail on Apple devices whatever you do: geometry and tessellation shaders, and shaders that aren't written for URP.