Releases: scillgame/scill-unity
Package version
Set User Info and backwards compatibility
Fixed
- Fixed an issue with callback function being called twice on success when using
SCILLManager.Instance.SetUserInfoAsync(callback, name, avatar)
- Restored backwards compatibility to C# version used in 2019.4.33f1
Improved leaderboard support
Added
- Added wrapper function to allow easier access for supplying optional parameters like startDate, endDate and sorting method when interacting with the leaderboard api. Can now supply
LeaderboardApiOptionalParameters
using e.g.SCILLManager.Instance.SCILLClient.GetLeaderboardAsync(string leaderboardId, int? currentPage = null, int? pageSize = null, string language = null, int? currentPosition = null, LeaderboardApiOptionalParameters optionalParameters = null);
WebGL and Leaderboard fixes
Fixed
- Solved an issue with WebGL builds when using Unity Version 2021.X or higher
- Fixed an issue with user ranking being hidden, even though the user is present in the leaderboard
Updated SCILLManager SendEvent methods
Added
SCILLManager.SendEventAsync
andSCILLManager.SendEventForUserIdAsync
now support sending the optional teamId
Adjustment to Debug Logs
Changed
- Removed unnecessary Debug Logs
Leaderboards Api v2
Added the capability to access SCILL Api v2 endpoints for leaderboards. Leaderboard can be set to v2 on
creation in the 4Players Admin Panel. Leaderboards created for the Api v2 can only be accessed using Api v2
requests. Leaderboards created for the Api v1 can only be accessed using Api v1 requests.
Important: the SDK will automatically try to
access the v2 endpoints. If you're still using leaderboards created for the v1 endpoints, you will have to do the following:
- Create a file called:
SCILLConfig.json
in aResources
folder under yourAssets
directory. - Set the file's content to:
{ "ApiVersion": "v1" }
The SDK will then use the v1 endpoints of the SCILL Api.
Added
- Can now call
ResetLeaderboardRankings
to reset all ranking data of a leaderboard, using theSCILLBackend
. This request is not available on Client Side Code. - Can now add a
SCILLConfig.json
file in aResources
folder under theAssets
directory to adjust SCILL-SDK settings, i.e. the api version, the Api Domain and the domain prefixes for the Authentication, Events, Challenges, BattlePasses and Leaderboards Apis. The default configuration is set to:
{
"ApiVersion": "v2",
"Domain" : "scill.4players.io",
"DomainPrefixAuthentication" : "us",
"DomainPrefixEvents" : "ep",
"DomainPrefixChallenges" : "pcs",
"DomainPrefixBattlePasses" : "es",
"DomainPrefixLeaderboards" : "ls"
}
Changed
- The Leaderboard Api requests
GetLeaderboardAsync
,GetLeaderboardsAsync
,GetLeaderboardRankingAsync
andGetLeaderboardRankingsAsync
now provide additional, optional parameters. These parameters can only be used for requests sent using Api Versionv2
.
Challenge Category name display
Fixed
- Fixed an issue with Personal Challenge Category names not being displayed correctly.
Feedback Examples
We've added visual and audio feedback effects to the samples - they will play for certain triggers like "Personal Challenge Completed" or "Battle Pass Level Changed".
The SCILLAudio
prefab can simply be dropped into your scene and will automatically connect to all relevant systems. Using a new SCILLAudioSettings
Scriptable Object or adjusting the default you can switch out our sample clips with your own files. Samples of how to play particle effects or fire off UI animations can be seen in the sample scenes.
Added
- Added Scripts for playing audio clips on certain triggers, e.g. Personal Challenge Completed or Battle Pass Level Changed
- Audio feedback clips can be changed using the new
SCILLAudioSettings
Scriptable Object - Added sample particle systems and audio clips for visual and audio feedback
- Added UnityEvents to Challenge items
Changed
- Improved update behavior of
SCILLChallengeItem
andSCILLBattlePassChallengeItem
Fixed
- Fixed issue with Battle Pass Level not being updated correctly under some conditions
Added C# SDK project to repository
We've added the Unity specific C# SDK project to the repository for easy access to the source code. The DLL produced by this project will only work with Unity, it will not work when trying to use it in a standalone C# project. For standalone C# projects, please use the standalone SCILL C# SDK.
Added
- The C# SDK project is now part of this repository
Changed
- Leaderboard Ranking Item: relative resource path for loading avatar images can now be adjusted in the editor
Fixed
- Fixed issues with personal challenges not displaying progress bar correctly in some cases
- Fixed issues with the battlepass UI not displaying in cases where a reward with a display prefab was loaded, but no photobox was selected in the RewardPreview