Version: 2023.2

ApplyRulesIfNotGraphicsAPIAttributeConstructor

切换到手册
public ApplyRulesIfNotGraphicsAPIAttribute (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 doesn't match any of the graphicsDeviceTypes.