Experimental: this API is experimental and might be changed or removed in the future.

GraphicsStateCollection.LoadFromFile

Declaration

public bool LoadFromFile(string filePath);

Parameters

filePath Location of the GraphicsStateCollection file.

Returns

bool Returns true if the collection was successfully loaded, false otherwise.

Description

Load the GraphicsStateCollection at the given path.

The file extension of GraphicsStateCollection is *.graphicsstate.

using UnityEngine;
using UnityEngine.Experimental.Rendering;

public class LoadFromFileExample : MonoBehaviour { public GraphicsStateCollection graphicsStateCollection; public string filePath;

void Start() { graphicsStateCollection = new GraphicsStateCollection(); graphicsStateCollection.LoadFromFile(filePath); } }

Did you find this page useful? Please give it a rating: