Page cover image

Set Achievement Icon

Like what your seeing?

Introduction

Reads the achievement icon image from the Steam backend. This will display the locked or unlocked image depending on the current state of the achievement for the user.

Definition

[RequireComponent(typeof(UnityEngine.UI.RawImage))]
public class SetAchievementIcon : MonoBehaviour

Fields and Attributes

Achievement

public AchievementObject achievement;

The achievement we should load for.

Methods

Refresh

public void Refresh()

Refresh the image, this will automatically be called anytime Valve notifies the game of a change such as on Set, Clear or Reset.

Last updated