Skip to content

Ps5Trophies

Source: Assets/UpscaleSDK/Platform/PS5/Users/Trophies/Ps5Trophies.cs

class Ps5Trophies

Represents a ps5 trophies class.

Events

public event Action<int> OnTrophyUnlocked

Occurs when trophy unlocked.

Methods

public static void Unlock(int id)

Unlock.

Parameters

Name Description
id The id.

public void Unlock(int trophyId, Action callback = null)

Unlocks the trophy with the given ID.

Parameters

Name Description
trophyId ID of a trophy

public void UnlockProgress(int trophyId, long progress, Action callback = null)

Updates the progress of a trophy with the given ID.

Parameters

Name Description
trophyId ID of a trophy
progress New progress

public bool IsTrophyUnlocked(int trophyId)

Checks if the trophy with the given ID is unlocked.

Parameters

Name Description
trophyId ID of trophy

Returns: Trophy status