Table of Contents

Class Resources

Namespace
UILib
Assembly
UILib.dll

A class holding resources used by UILib. These resources are loaded from an AssetBundle.

public static class Resources
Inheritance
Resources
Inherited Members

Properties

checkMark

The default checkmark used by Peaks of Yore.

public static Texture2D checkMark { get; }

Property Value

Texture2D

circle

A texture of a circle.

public static Texture2D circle { get; }

Property Value

Texture2D

gameFont

The default Peaks of Yore font (Roman Antique).

public static Font gameFont { get; }

Property Value

Font

gameFontAlt

The default Peaks of Yore font (Roman Antique). An alternate variant which is used on input fields, as they process Roman Antique incorrectly.

public static Font gameFontAlt { get; }

Property Value

Font

gameMenuClick

The default Peaks of Yore menu click sound.

public static AudioClip gameMenuClick { get; }

Property Value

AudioClip

hsvOpacity

A material which renders a specific HSV color in a gradient of opacities.

public static Material hsvOpacity { get; }

Property Value

Material

hsvRect

A material which renders an HSV rectangle.

public static Material hsvRect { get; }

Property Value

Material

hsvSpectrum

A material which renders a spectrum of all hues at maximum saturation and value.

public static Material hsvSpectrum { get; }

Property Value

Material

notification

The default notification sound used by UILib.

public static AudioClip notification { get; }

Property Value

AudioClip

notificationError

The default error notification sound used by UILib.

public static AudioClip notificationError { get; }

Property Value

AudioClip

triangle

A texture of a triangle.

public static Texture2D triangle { get; }

Property Value

Texture2D

Methods

LoadBundle(Assembly, string)

Loads an AssetBundle.

If your asset bundle is embedded under res/, for example, and has the name uilib.bundle, then the name should be res.uilib.bundle.

public static AssetBundle LoadBundle(Assembly assembly, string name)

Parameters

assembly Assembly

The assembly to load the bundle from

name string

The name of the asset bundle to load

Returns

AssetBundle

The loaded asset bundle