ShaderIncludePathAttribute
This attribute is no longer supported.
읽는 시간 3분최근 업데이트: 한 달 전
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: Attribute
- Implements: _Attribute
[AttributeUsage(AttributeTargets.Method)]public class ShaderIncludePathAttribute : Attribute, _Attribute
Remarks
Shader libraries in arbitrary locations are no longer supported. Your shader files must be located under the Assets folder or in a package. To include shader headers from packages, use the following syntax in the shader code:
#include "Packages/<package name>/<path to your header file>"