Documentation

Unity Engine

Unity Engine

LoadFromFile(string)

Load the GraphicsStateCollection at the given path.
Read time 1 minuteLast updated 2 months ago

Definition

public bool LoadFromFile(string filePath)

Parameters

filePath

Location of the GraphicsStateCollection file.

Returns

Type

Description

boolReturns true if the collection was successfully loaded, false otherwise.

Remarks

The file extension of GraphicsStateCollection is *.graphicsstate.

Examples

using UnityEngine;using UnityEngine.Experimental.Rendering;public class LoadFromFileExample : MonoBehaviour{ public GraphicsStateCollection graphicsStateCollection; public string filePath; void Start() { graphicsStateCollection = new GraphicsStateCollection(); graphicsStateCollection.LoadFromFile(filePath); }}