Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShaderIncludePathAttribute

This attribute is no longer supported.
Read time 3 minutesLast updated 2 days ago

Definition

Warning
Removed. [ShaderIncludePath] attribute is no longer supported. Your shader library must be under the Assets folder or in a package. To include shader headers directly from a package, use #include "Packages/\<package name\>/\<path to your header file\>"
[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>"

Inheritance

Inherited Members