gg.easy.airship 0.1.2121 → 0.1.2123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -395,9 +395,11 @@ namespace Editor.Packages {
395
395
 
396
396
  // Uncomment to just build iOS
397
397
  if (isCoreMaterials) {
398
- platforms.Clear();
399
- // platforms.Add(AirshipPlatform.iOS);
400
- platforms.Add(AirshipPlatform.Android);
398
+ // platforms.Clear();
399
+ // platforms.Add(AirshipPlatform.iOS);
400
+ // platforms.Add(AirshipPlatform.Android);
401
+ platforms.Add(AirshipPlatform.Windows);
402
+ platforms.Add(AirshipPlatform.Mac);
401
403
  }
402
404
 
403
405
  if (!CreateAssetBundles.PrePublishChecks()) {
@@ -27,23 +27,23 @@ namespace Code.Components {
27
27
  }
28
28
 
29
29
  private void Update(){
30
- if(Input.GetMouseButtonDown(0)) { // capture screen shot on left mouse button down
31
- if(transparentBackground){
32
- TakeScreenshotRenderTransparent();
33
- } else{
34
- TakeScreenshotRender();
35
- }
36
- }
30
+ // if(Input.GetMouseButtonDown(0)) { // capture screen shot on left mouse button down
31
+ // if(transparentBackground){
32
+ // TakeScreenshotRenderTransparent();
33
+ // } else{
34
+ // TakeScreenshotRender();
35
+ // }
36
+ // }
37
37
  }
38
38
 
39
- public void TakeScreenshotRender(){
39
+ public void TakeScreenshotRender() {
40
40
  var folderPath = CreateFolder();
41
41
  var screenshotName = GetFileName();
42
42
  ScreenCapture.CaptureScreenshot(Path.Combine(folderPath, screenshotName), superScaleSize); // takes the sceenshot, the "2" is for the scaled resolution, you can put this to 600 but it will take really long to scale the image up
43
43
  Debug.Log("Saved screenshot to: " + folderPath + screenshotName); // You get instant feedback in the console
44
44
  }
45
45
 
46
- public void TakeScreenshotRenderTransparent(){
46
+ public void TakeScreenshotRenderTransparent() {
47
47
  var folderPath = CreateFolder();
48
48
  var screenshotName = GetFileName();
49
49
 
@@ -0,0 +1,25 @@
1
+ #if UNITY_EDITOR
2
+ using UnityEditor;
3
+ using UnityEngine;
4
+
5
+ namespace Code.Components {
6
+ [CustomEditor(typeof(EditorScreenShotTool))]
7
+ public class EditorScreenShotToolEditor : Editor {
8
+ public override void OnInspectorGUI() {
9
+ // Draw default inspector first
10
+ DrawDefaultInspector();
11
+
12
+ EditorScreenShotTool tool = (EditorScreenShotTool)target;
13
+
14
+ GUILayout.Space(10);
15
+ if (GUILayout.Button("Take Screenshot")) {
16
+ if (tool.transparentBackground) {
17
+ tool.TakeScreenshotRenderTransparent();
18
+ } else {
19
+ tool.TakeScreenshotRender();
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
25
+ #endif
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 9fb53f9283df448db6f3c9c9798e541a
3
+ timeCreated: 1745520453
@@ -54,7 +54,7 @@ namespace Assets.Code.Luau {
54
54
  LuauScript.Create(go, CoreEntryScript, LuauContext.Game, true);
55
55
  }
56
56
  stopwatch.Stop();
57
- Debug.Log($"ScriptingEntryPoint elapsed time: {stopwatch.ElapsedMilliseconds}ms");
57
+ // Debug.Log($"ScriptingEntryPoint elapsed time: {stopwatch.ElapsedMilliseconds}ms");
58
58
  }
59
59
  }
60
60
  }
@@ -32,6 +32,10 @@ namespace Code.Player.Accessories {
32
32
  LeftArmUpper,
33
33
  LeftArmLower,
34
34
  RightArmUpper,
35
- RightArmLower
35
+ RightArmLower,
36
+ RightShoulder,
37
+ LeftShoulder,
38
+ FrontChest,
39
+ BackChest
36
40
  }
37
41
  }
@@ -57,8 +57,13 @@ public class CharacterRig : MonoBehaviour {
57
57
  public Transform headTop;
58
58
  public Transform neck;
59
59
  public Transform spineChest;
60
- public Transform heldItemL;
60
+ public Transform chestBack;
61
+ public Transform chestFront;
62
+ public Transform heldItemL;
61
63
  public Transform heldItemR;
64
+ public Transform shoulderItemL;
65
+ public Transform shoulderItemR;
66
+
62
67
 
63
68
  [Header("Color")] public MaterialColorURP headColor;
64
69
  public MaterialColorURP bodyColor;
@@ -99,6 +104,10 @@ public class CharacterRig : MonoBehaviour {
99
104
 
100
105
  //TORSO
101
106
  case AccessorySlot.Torso:
107
+ case AccessorySlot.FrontChest:
108
+ return chestFront;
109
+ case AccessorySlot.BackChest:
110
+ return chestBack;
102
111
  case AccessorySlot.TorsoInner:
103
112
  case AccessorySlot.TorsoOuter:
104
113
  return spine;
@@ -119,6 +128,10 @@ public class CharacterRig : MonoBehaviour {
119
128
  return upperArmL;
120
129
  case AccessorySlot.LeftArmLower:
121
130
  return forearmL;
131
+ case AccessorySlot.LeftShoulder:
132
+ return shoulderItemL;
133
+ case AccessorySlot.RightShoulder:
134
+ return shoulderItemR;
122
135
  case AccessorySlot.RightArmUpper:
123
136
  return upperArmR;
124
137
  case AccessorySlot.RightArmLower:
@@ -447,7 +447,12 @@ public class CharacterMovement : NetworkBehaviour {
447
447
  currentMoveState.jumpCount = 0;
448
448
  currentMoveState.timeSinceBecameGrounded = 0f;
449
449
  OnImpactWithGround?.Invoke(currentVelocity, groundHit);
450
- CommandImpactWithGround(currentVelocity, groundHit);
450
+ if (isClientOnly) {
451
+ CommandImpactWithGround(currentVelocity, groundHit);
452
+ }
453
+ else {
454
+ RpcImpactWithGround(currentVelocity, groundHit);
455
+ }
451
456
  } else {
452
457
  currentMoveState.timeSinceBecameGrounded
453
458
  = Math.Min(currentMoveState.timeSinceBecameGrounded + deltaTime, 100f);
@@ -853,8 +858,8 @@ public class CharacterMovement : NetworkBehaviour {
853
858
  //Push the character out of any colliders
854
859
  flatVelocity
855
860
  = Vector3.ClampMagnitude(newVelocity, forwardHit.distance - characterRadius - forwardMargin);
856
- newVelocity.x = flatVelocity.x;
857
- newVelocity.z = flatVelocity.z;
861
+ newVelocity.x += flatVelocity.x;
862
+ newVelocity.z += flatVelocity.z;
858
863
  }
859
864
 
860
865
  if (!grounded && detectedGround) {
@@ -1429,4 +1434,4 @@ public class CharacterMovement : NetworkBehaviour {
1429
1434
  {
1430
1435
  OnJumped?.Invoke(jumpVelocity);
1431
1436
  }
1432
- }
1437
+ }
@@ -281,8 +281,10 @@ namespace Code.VoiceChat {
281
281
  // print("[server] received audio from peer " + senderPeerId);
282
282
  RpcSendAudioToClient(senderPeerId, bytes, this.audioNonce);
283
283
 
284
- // var segment = FromByteArray<ChatroomAudioSegment>(bytes);
285
- // OnAudioReceived?.Invoke(senderPeerId, segment);
284
+ if (Application.isEditor) {
285
+ var segment = FromByteArray<ChatroomAudioSegment>(bytes);
286
+ OnAudioReceived?.Invoke(senderPeerId, segment);
287
+ }
286
288
  }
287
289
 
288
290
  [ClientRpc(channel = Channels.Reliable)]
@@ -950,6 +950,11 @@ namespace Airship.DevConsole
950
950
 
951
951
  [MethodImpl(MethodImplOptions.AggressiveInlining)]
952
952
  internal void Log(object message, LogContext context = LogContext.Client, bool prepend = false) {
953
+ string s = message.ToString();
954
+ if (s.Contains("The character with Unicode value")) {
955
+ return;
956
+ }
957
+
953
958
  Profiler.BeginSample("DevConsole.Log");
954
959
  var list = StoredLogText[context];
955
960
  if (list.Count >= 100) {
@@ -994,10 +999,6 @@ namespace Airship.DevConsole
994
999
 
995
1000
  [MethodImpl(MethodImplOptions.AggressiveInlining)]
996
1001
  internal void LogWarning(object message, LogContext context = LogContext.Client, bool prepend = false) {
997
- string s = message.ToString();
998
- if (s.Contains("The character with Unicode value ")) {
999
- return;
1000
- }
1001
1002
  Log(message, context, prepend, WarningColour);
1002
1003
  }
1003
1004
 
@@ -2955,6 +2956,11 @@ namespace Airship.DevConsole
2955
2956
  ));
2956
2957
 
2957
2958
  #endregion
2959
+
2960
+ AddCommand(Command.Create("lighting", "", "View lighting data", () => {
2961
+ Debug.Log("Lightmaps: " + LightmapSettings.lightmaps.Length);
2962
+ Debug.Log("Probes: " + LightmapSettings.lightProbes?.count);
2963
+ }));
2958
2964
  }
2959
2965
 
2960
2966
  /// <summary>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg.easy.airship",
3
- "version": "0.1.2121",
3
+ "version": "0.1.2123",
4
4
  "displayName": "Airship",
5
5
  "unity": "2021.3",
6
6
  "unityRelease": "12f1",