Version: 2022.3

ApplyRulesIfGraphicsAPIAttributeConstructor

切换到手册
public ApplyRulesIfGraphicsAPIAttribute (params GraphicsDeviceType[] graphicsDeviceTypes);

参数

graphicsDeviceTypes The array of graphics APIs to match to.

描述

Enable or disable shader keyword filter attributes based on the graphics API.

Unity enables filter attributes if the current build target matches any of the graphicsDeviceTypes.