Skip to content

Commit 68905f8

Browse files
committed
Version 1.10.1,
1 parent 0a80aa5 commit 68905f8

11 files changed

+26
-26
lines changed

Runtime/API/Animation/KinetixAnimation.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,9 @@ public void SetPlayRateOnLocalPlayer(float _PlayRate)
620620
/// <summary>
621621
/// Get the play rate of the local Player's kinetix animator
622622
/// </summary>
623-
public void GetPlayRateOnLocalPlayer()
623+
public float GetPlayRateOnLocalPlayer()
624624
{
625-
KinetixAnimationBehaviour.GetPlayRateOnLocalPlayer();
625+
return KinetixAnimationBehaviour.GetPlayRateOnLocalPlayer();
626626
}
627627

628628
/// <summary>
@@ -637,9 +637,9 @@ public void SetElapsedTimeOnLocalPlayer(float _ElapsedTime)
637637
/// <summary>
638638
/// Get the current time of the local Player's kinetix animator
639639
/// </summary>
640-
public void GetElapsedTimeOnLocalPlayer()
640+
public float GetElapsedTimeOnLocalPlayer()
641641
{
642-
KinetixAnimationBehaviour.GetElapsedTimeOnLocalPlayer();
642+
return KinetixAnimationBehaviour.GetElapsedTimeOnLocalPlayer();
643643
}
644644

645645
/// <summary>
@@ -656,9 +656,9 @@ public void SetPlayRateOnAvatar(string _PlayerUUID, float _PlayRate)
656656
/// Get the play rate of a local Character's kinetix animator
657657
/// </summary>
658658
/// <param name="_PlayerUUID">UUID of the avatar</param>
659-
public void GetPlayRateOnAvatar(string _PlayerUUID)
659+
public float GetPlayRateOnAvatar(string _PlayerUUID)
660660
{
661-
KinetixAnimationBehaviour.GetPlayRateOnAvatar(_PlayerUUID);
661+
return KinetixAnimationBehaviour.GetPlayRateOnAvatar(_PlayerUUID);
662662
}
663663

664664
/// <summary>
@@ -675,9 +675,9 @@ public void SetElapsedTimeOnAvatar(string _PlayerUUID, float _ElapsedTime)
675675
/// Get the current time of a local Character's kinetix animator
676676
/// </summary>
677677
/// <param name="_PlayerUUID">UUID of the avatar</param>
678-
public void GetElapsedTimeOnAvatar(string _PlayerUUID)
678+
public float GetElapsedTimeOnAvatar(string _PlayerUUID)
679679
{
680-
KinetixAnimationBehaviour.GetElapsedTimeOnAvatar(_PlayerUUID);
680+
return KinetixAnimationBehaviour.GetElapsedTimeOnAvatar(_PlayerUUID);
681681
}
682682

683683
/// <summary>

Runtime/API/Animation/KinetixAnimationBehaviour.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -367,33 +367,33 @@ public static void SetPlayRateOnLocalPlayer(float _PlayRate)
367367
{
368368
KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().LocalPlayer.SetPlayRate(_PlayRate);
369369
}
370-
public static void GetPlayRateOnLocalPlayer()
370+
public static float GetPlayRateOnLocalPlayer()
371371
{
372-
KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().LocalPlayer.GetPlayRate();
372+
return KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().LocalPlayer.GetPlayRate();
373373
}
374374
public static void SetElapsedTimeOnLocalPlayer(float _ElapsedTime)
375375
{
376376
KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().LocalPlayer.SetElapsedTime(_ElapsedTime);
377377
}
378-
public static void GetElapsedTimeOnLocalPlayer()
378+
public static float GetElapsedTimeOnLocalPlayer()
379379
{
380-
KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().LocalPlayer.GetElapsedTime();
380+
return KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().LocalPlayer.GetElapsedTime();
381381
}
382382
public static void SetPlayRateOnAvatar(string _PlayerUUID, float _PlayRate)
383383
{
384384
KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().SetPlayRate(_PlayerUUID, _PlayRate);
385385
}
386-
public static void GetPlayRateOnAvatar(string _PlayerUUID)
386+
public static float GetPlayRateOnAvatar(string _PlayerUUID)
387387
{
388-
KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().GetPlayRate(_PlayerUUID);
388+
return KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().GetPlayRate(_PlayerUUID);
389389
}
390390
public static void SetElapsedTimeOnAvatar(string _PlayerUUID, float _ElapsedTime)
391391
{
392392
KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().SetElapsedTime(_PlayerUUID, _ElapsedTime);
393393
}
394-
public static void GetElapsedTimeOnAvatar(string _PlayerUUID)
394+
public static float GetElapsedTimeOnAvatar(string _PlayerUUID)
395395
{
396-
KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().GetElapsedTime(_PlayerUUID);
396+
return KinetixCoreBehaviour.ManagerLocator.Get<PlayersManager>().GetElapsedTime(_PlayerUUID);
397397
}
398398
#endregion
399399

Runtime/Clip/Kinetix.Clip.dll

0 Bytes
Binary file not shown.

Runtime/Const/KinetixConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Kinetix.Internal
88
{
99
public static class KinetixConstants
1010
{
11-
public const string version = "1.10.0";
11+
public const string version = "1.10.1";
1212
public static bool C_ShouldUGCBeAvailable = true;
1313
public static readonly int c_TimeOutCreateQRCode = 305;
1414

Runtime/Managers/PlayerManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,9 @@ public AnimationIds[] GetDownloadedAnimationsReadyToPlay()
579579

580580
public void SetPause(bool _Paused) => KinetixCharacterComponent.SetPause(_Paused);
581581
public void SetPlayRate(float _PlayRate) => KinetixCharacterComponent.SetPlayRate(_PlayRate);
582-
public void GetPlayRate() => KinetixCharacterComponent.GetPlayRate();
582+
public float GetPlayRate() => KinetixCharacterComponent.GetPlayRate();
583583
public void SetElapsedTime(float _ElapsedTime) => KinetixCharacterComponent.SetElapsedTime(_ElapsedTime);
584-
public void GetElapsedTime() => KinetixCharacterComponent.GetElapsedTime();
584+
public float GetElapsedTime() => KinetixCharacterComponent.GetElapsedTime();
585585

586586
public void PlayAnimation(AnimationIds _AnimationsIds, Action<AnimationIds> _OnPlayedAnimation, string _ForcedExtension = "")
587587
=> PlayAnimation(_AnimationsIds, AnimationTimeRange.Default, _OnPlayedAnimation, _ForcedExtension);

Runtime/Managers/PlayersManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ public void GetPlayRateOnLocalPlayer()
236236
localPlayer.GetPlayRate();
237237
}
238238

239-
public void GetPlayRate(string _PlayerUUID)
239+
public float GetPlayRate(string _PlayerUUID)
240240
{
241241
PlayerManager player = players.Find((player) => player.UUID == _PlayerUUID);
242-
player.GetPlayRate();
242+
return player.GetPlayRate();
243243
}
244244

245245
public void SetElapsedTimeOnLocalPlayer(float _ElapsedTime)
@@ -258,10 +258,10 @@ public void GetElapsedTimeOnLocalPlayer()
258258
localPlayer.GetElapsedTime();
259259
}
260260

261-
public void GetElapsedTime(string _PlayerUUID)
261+
public float GetElapsedTime(string _PlayerUUID)
262262
{
263263
PlayerManager player = players.Find((player) => player.UUID == _PlayerUUID);
264-
player.GetElapsedTime();
264+
return player.GetElapsedTime();
265265
}
266266

267267
public void SetLoopAnimation(string _PlayerUUID, bool _Looping)

Runtime/Retarget/CompilationLog.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Starting compiling Kinetix.Retarget.dll
2-
D:\UnityInstall\2020.3.33f1\Editor\Data\Tools\RoslynScripts\unity_csc.bat /noconfig @Temp/UnityTempFile-012420e38e566124a8d91baea68bb16a
2+
D:\UnityInstall\2020.3.33f1\Editor\Data\Tools\RoslynScripts\unity_csc.bat /noconfig @Temp/UnityTempFile-a106a6cd47ab52b4b87e469fa27423ad
33
# Starting IL post processing on Kinetix.Retarget.dll
4-
D:/UnityInstall/2020.3.33f1/Editor/Data/MonoBleedingEdge/bin/mono.exe D:/UnityInstall/2020.3.33f1/Editor/Data/Tools/ILPostProcessorRunner/ILPostProcessorRunner.exe @D:/Kinetix/kinetix-emote-wheel/Temp/UnityTempFile-2016194ac1d0d5a41a33e1cfa3e7d09f
4+
D:/UnityInstall/2020.3.33f1/Editor/Data/MonoBleedingEdge/bin/mono.exe D:/UnityInstall/2020.3.33f1/Editor/Data/Tools/ILPostProcessorRunner/ILPostProcessorRunner.exe @D:/Kinetix/kinetix-emote-wheel/Temp/UnityTempFile-703d3427be432e24fbe54628bc0ef2d3

Runtime/Retarget/Kinetix.Retarget.dll

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.kinetix.coreweb2",
3-
"version": "1.10.0",
3+
"version": "1.10.1",
44
"displayName": "Kinetix Core",
55
"description": "Kinetix Core SDK",
66
"samples": [

0 commit comments

Comments
 (0)