Table of Contents

Class UIAchievementsMenu

Unity UI sample that uses AchievementManager to demo features. Can be used as a template or starting point for implementing Achievement features.

public class UIAchievementsMenu : SampleMenu
Inheritance
UIAchievementsMenu
Inherited Members

Fields

achievementListContainer

public Transform achievementListContainer

Field Value

Transform

achievementLockedIcon

public RawImage achievementLockedIcon

Field Value

RawImage

achievementUnlockedIcon

public RawImage achievementUnlockedIcon

Field Value

RawImage

definitionsDescription

public Text definitionsDescription

Field Value

Text

itemTemplate

public UIAchievementButton itemTemplate

Field Value

UIAchievementButton

loginIncreaseButton

public Button loginIncreaseButton

Field Value

Button

refreshDataButton

public Button refreshDataButton

Field Value

Button

scrollRect

public ScrollRect scrollRect

Field Value

ScrollRect

showDefinitionToggle

public Toggle showDefinitionToggle

Field Value

Toggle

unlockAchievementButton

public Button unlockAchievementButton

Field Value

Button

Methods

Awake()

When overriding, call this base implementation first.

protected override void Awake()

IncrementLoginStat()

public void IncrementLoginStat()

OnDefinitionIdButtonClicked(int)

public void OnDefinitionIdButtonClicked(int i)

Parameters

i int

OnDestroy()

When overriding, call this base implementation first.

protected override void OnDestroy()

OnRefreshDataClicked()

public void OnRefreshDataClicked()

OnShowDefinitionChanged(bool)

public void OnShowDefinitionChanged(bool value)

Parameters

value bool

RefreshDisplayingDefinition()

public void RefreshDisplayingDefinition()

UnlockAchievement()

public void UnlockAchievement()