Enabling Streaming Virtual Texturing in your project
Enable Virtual Texturing in the Player Settings to begin using the feature.
読み終わるまでの所要時間 1 分最終更新 24日前
title: null
---This feature is experimental and not ready for production use. The feature and documentation might be changed or removed in the future.
To enable Streaming Virtual Texturing, you need to enable Virtual Texturing in your project. To do this, go to Edit > > Player > Other Settings and enable the Virtual Texturing setting.
Project Settings
?
Virtual Texturing is a project-wide setting that is shared for all platforms. You cannot build a player for platforms and graphics APIs that don't support Virtual Texturing. Virtual Texturing can allocate resources such as buffers, even if you don't use the feature in your project, so don't enable Virtual Texturing if you don't plan to use it.
When you enable Virtual Texturing in your project, Unity adds the following compiler directives:
- : C# define that evaluates to
ENABLE_VIRTUALTEXTURESif your project supports Virtual Texturing.True - : C++ and C# editor define that evaluates to
ENABLE_VIRTUALTEXTURINGif Virtual Texturing is possible on the current build target.True - : Shader version of
UNITY_VIRTUAL_TEXTURING.ENABLE_VIRTUALTEXTURES
Note that these might be renamed in future versions of Unity.