gg.easy.airship 0.1.2123 → 0.1.2125
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.
- package/Editor/CreateAssetBundles.cs +16 -6
- package/Runtime/Code/DeveloperTooling/EasyTransformAnchor.cs +14 -12
- package/Runtime/Code/Luau/LuauPlugin.cs +3 -5
- package/Runtime/Code/UserInput/KeyboardInput.cs +3 -1
- package/Runtime/Plugins/Android/libLuauPlugin.so +0 -0
- package/Runtime/Plugins/Linux/libLuauPlugin.so +0 -0
- package/Runtime/Plugins/Mac/LuauPlugin.bundle/Contents/Info.plist +1 -1
- package/Runtime/Plugins/Mac/LuauPlugin.bundle/Contents/MacOS/LuauPlugin +0 -0
- package/Runtime/Plugins/Windows/x64/LuauPlugin.dll +0 -0
- package/Runtime/Plugins/Windows/x64/LuauPlugin.pdb +0 -0
- package/Runtime/Plugins/iOS/LuauPluginIos.a +0 -0
- package/package.json +1 -1
|
@@ -311,14 +311,24 @@ public static class CreateAssetBundles {
|
|
|
311
311
|
foreach (var assetBundleFile in AirshipPackagesWindow.assetBundleFiles) {
|
|
312
312
|
var assetBundleName = assetBundleFile.ToLower();
|
|
313
313
|
if (assetBundleName == "shared/scenes") {
|
|
314
|
-
|
|
315
|
-
.Select((s) => AssetDatabase.GetAssetPath((SceneAsset)s))
|
|
314
|
+
var assetGuids = gameConfig.gameScenes
|
|
315
|
+
.Select((s) => AssetDatabase.GetAssetPath((SceneAsset)s)).ToHashSet();
|
|
316
|
+
|
|
317
|
+
var explicitlyAddedPaths = AssetDatabase.GetAssetPathsFromAssetBundle("scenes");
|
|
318
|
+
Debug.Log($"Found {explicitlyAddedPaths.Length} explicit assets for scenes bundle.");
|
|
319
|
+
foreach (var path in explicitlyAddedPaths) {
|
|
320
|
+
// Debug.Log(" - " + path);
|
|
321
|
+
assetGuids.Add(AssetDatabase.AssetPathToGUID(path));
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
string[] assetPaths = assetGuids
|
|
316
325
|
.Where((path) => !(path.EndsWith(".lua") || path.EndsWith(".json~")))
|
|
317
326
|
.ToArray();
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
327
|
+
Debug.Log("Including assets in scenes bundle:");
|
|
328
|
+
foreach (var p in assetPaths) {
|
|
329
|
+
Debug.Log(" - " + p);
|
|
330
|
+
}
|
|
331
|
+
|
|
322
332
|
var addressableNames = assetPaths.Select((p) => p.ToLower())
|
|
323
333
|
.ToArray();
|
|
324
334
|
var build = new AssetBundleBuild() {
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
1
|
using UnityEngine;
|
|
4
2
|
|
|
5
|
-
public class EasyTransformAnchor : MonoBehaviour
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
3
|
+
public class EasyTransformAnchor : MonoBehaviour {
|
|
4
|
+
public Transform anchor;
|
|
5
|
+
public bool matchPosition = true;
|
|
6
|
+
public bool matchRotation = true;
|
|
7
|
+
public bool matchScale = false;
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
void Update()
|
|
9
|
+
void LateUpdate()
|
|
15
10
|
{
|
|
16
|
-
|
|
11
|
+
if(matchPosition)
|
|
12
|
+
this.transform.position = anchor.position;
|
|
13
|
+
|
|
14
|
+
if(matchRotation)
|
|
15
|
+
this.transform.rotation = anchor.rotation;
|
|
16
|
+
|
|
17
|
+
if(matchScale)
|
|
18
|
+
this.transform.localScale = anchor.localScale;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -241,12 +241,10 @@ public static class LuauPlugin {
|
|
|
241
241
|
#else
|
|
242
242
|
[DllImport("LuauPlugin", CallingConvention = CallingConvention.Cdecl)]
|
|
243
243
|
#endif
|
|
244
|
-
private static extern
|
|
245
|
-
public static
|
|
244
|
+
private static extern void Reset(LuauContext context);
|
|
245
|
+
public static void LuauReset(LuauContext context) {
|
|
246
246
|
ThreadSafetyCheck();
|
|
247
|
-
|
|
248
|
-
bool returnValue = Reset(context);
|
|
249
|
-
return returnValue;
|
|
247
|
+
Reset(context);
|
|
250
248
|
}
|
|
251
249
|
|
|
252
250
|
#if UNITY_IPHONE
|
|
@@ -6,11 +6,13 @@ public class KeyboardInput : IDisposable {
|
|
|
6
6
|
public event Action<Key> KeyDown;
|
|
7
7
|
public event Action<Key> KeyUp;
|
|
8
8
|
|
|
9
|
-
private
|
|
9
|
+
private InputActionMap _inputMap = new InputActionMap("keyboard");
|
|
10
10
|
|
|
11
11
|
public KeyboardInput() {
|
|
12
12
|
// Capture all keys and bind them to the input action map:
|
|
13
13
|
foreach (var keyControl in Keyboard.current.allKeys) {
|
|
14
|
+
if (keyControl == null) continue;
|
|
15
|
+
|
|
14
16
|
var action = _inputMap.AddAction(keyControl.name);
|
|
15
17
|
action.AddBinding($"<Keyboard>/{keyControl.name}");
|
|
16
18
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|