# Unity Assembly 的版本定義 (Version Defines) ## 版本定義 (Version Defines) ### 以 Unity.InputSystem 的 Version Defines 為例 當中定義版本號 **com.unity.xr.oculus** 的意思為,如果我有安裝此 [com.unity.xr.oculus](https://docs.unity3d.com/Packages/com.unity.xr.oculus@4.2/manual/index.html) 模塊,並且 package 版本 >= 1.0.3 時,則返回 true,將啟用 **DISABLE_BUILTIN_INPUT_SYSTEM_OCULUS** 的宏 <font color=#EE82EE size=2>(於 Assembly 代碼中的宏)</font>。   反之,一般沒有安裝 [com.unity.xr.oculus](https://docs.unity3d.com/Packages/com.unity.xr.oculus@4.2/manual/index.html) 模塊的情況下為 false,又或者有安裝,但是 package 版本 < 1.0.3 也會是 false,所以在這些情況下 **!DISABLE_BUILTIN_INPUT_SYSTEM_OCULUS (!false = true)**,將會啟用以下部分代碼 <font color=#EE82EE size=2>(於 Assembly 代碼中的宏)</font>。 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up