A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.unity3d.com/Manual/shader-branching-unity-version.html below:

Manual: Branch based on Unity version

Branch based on platform features

Branch based on shader pass or shader stage

Branch based on Unity version

UNITY_VERSION contains the numeric value of the Unity version.

This can be used for version comparisons if you need to write shaders that use different built-in shader functionality. For example, use #if UNITY_VERSION >= 202200 if you want the preprocessor check to pass only on Unity versions 2022 or later.

Unity 2023 or earlier

Use the format YYYYMP, where:

For example, for Unity 2022.3.0, use 202230.

You can use only values up to 9 for the minor and patch versions. This means you can’t check for a Unity version with a minor version larger than 9 or a patch version larger than 9.

Unity 6.0 Preview

Use the format 6000PPPP, where:

For example, for Unity 6000.0.2, use 60000002.

Branch based on platform features

Branch based on shader pass or shader stage


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4