文档

Unity Engine


User Manual

Script Reference

Unity Engine


GraphicsStateCollection

Create a GraphicsStateCollection populated with contents of a file, or empty.
阅读时间1 分钟最后更新于 1 个月前

Definition

GraphicsStateCollection()

Create a GraphicsStateCollection populated with contents of a file, or empty.
public GraphicsStateCollection()

Remarks

The file extension of GraphicsStateCollection is *.graphicsstate.
Note: On the Web platform, you can’t load a GraphicsStateCollection from a file because the platform doesn’t support it.

GraphicsStateCollection(string)

Create a GraphicsStateCollection populated with contents of a file, or empty.
public GraphicsStateCollection(string filePath)

Parameters

filePath

Path to GraphicsStateCollection serialized file.

Remarks

The file extension of GraphicsStateCollection is *.graphicsstate.
Note: On the Web platform, you can’t load a GraphicsStateCollection from a file because the platform doesn’t support it.