fr.jeanf.eventsystem 0.1.124 → 0.1.126
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/.attestation.p7m +0 -0
- package/.github/workflows/publish.yml +45 -6
- package/Runtime/BaseClasses/TeleportInformation.cs +15 -0
- package/Samples~/PlayerChannels/GeneralPause.asset +16 -0
- package/Samples~/PlayerChannels/GeneralPause.asset.meta +8 -0
- package/package.json +12 -7
- package/Samples.meta +0 -8
- /package/{Samples → Samples~}/Filters/DefaultFilter.asset +0 -0
- /package/{Samples → Samples~}/Filters/DefaultFilter.asset.meta +0 -0
- /package/{Samples → Samples~}/Filters.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/ChangedControlSchemeChannelSO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/ChangedControlSchemeChannelSO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/DropTakenObjectEventChannelSO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/DropTakenObjectEventChannelSO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/GloveState Event Channel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/GloveState Event Channel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/GrabCount Event Channel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/GrabCount Event Channel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/GrabEvent_LeftHandState.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/GrabEvent_LeftHandState.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/GrabEvent_RightHandState.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/GrabEvent_RightHandState.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/Grab_LeftHand_SetAttachTransform.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/Grab_LeftHand_SetAttachTransform.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/Grab_RightHand_SetAttachTransform.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/Grab_RightHand_SetAttachTransform.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/NoHandIsGrabbing.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/NoHandIsGrabbing.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/SendHandCollidedWith.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab/SendHandCollidedWith.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Grab.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/HMDState Event Channel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/HMDState Event Channel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/MainMenuState Event Channel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/MainMenuState Event Channel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/MouseLookCameraReset Event Channel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/MouseLookCameraReset Event Channel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/MouseLookState Event Channel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/MouseLookState Event Channel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/ObjectDroppedChannelSO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/ObjectDroppedChannelSO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/ObjectTakenChannelSO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/ObjectTakenChannelSO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/ObjectTakenInSpecificLocationChannelSO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/ObjectTakenInSpecificLocationChannelSO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PokeEvent.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PokeEvent.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PoseEvent/HandDetectedEvent.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PoseEvent/HandDetectedEvent.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PoseEvent/HandDisapearedEvent.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PoseEvent/HandDisapearedEvent.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PoseEvent/LeftHandIsPointingEventChannel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PoseEvent/LeftHandIsPointingEventChannel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PoseEvent/RightHandIsPointingEventChannel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PoseEvent/RightHandIsPointingEventChannel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PoseEvent.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PrimaryItemState Event Channel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PrimaryItemState Event Channel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PrimaryItemState Event VR_Channel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PrimaryItemState Event VR_Channel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PrimaryItemStateWithUsedHandChannelSO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/PrimaryItemStateWithUsedHandChannelSO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/RefreshPingableObjects 1.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/RefreshPingableObjects 1.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/RefreshPingableObjects.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/RefreshPingableObjects.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/ResetChannel.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/ResetChannel.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/SceneIsLoading EventChannel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/SceneIsLoading EventChannel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Teleport Event Object Channel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Teleport Event Object Channel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Teleport Event Player Channel SO.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/Teleport Event Player Channel SO.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels/TeleportationState.asset +0 -0
- /package/{Samples → Samples~}/PlayerChannels/TeleportationState.asset.meta +0 -0
- /package/{Samples → Samples~}/PlayerChannels.meta +0 -0
package/.attestation.p7m
ADDED
|
Binary file
|
|
@@ -5,19 +5,58 @@ on:
|
|
|
5
5
|
branches:
|
|
6
6
|
- main
|
|
7
7
|
|
|
8
|
+
permissions:
|
|
9
|
+
id-token: write # Required for npm OIDC and Provenance
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
8
12
|
jobs:
|
|
9
13
|
release:
|
|
10
14
|
name: 🚀 publish
|
|
11
15
|
runs-on: ubuntu-latest
|
|
12
16
|
steps:
|
|
13
17
|
- name: 📚 checkout
|
|
14
|
-
uses: actions/checkout@
|
|
18
|
+
uses: actions/checkout@v6
|
|
19
|
+
|
|
15
20
|
- name: 🟢 node
|
|
16
|
-
uses: actions/setup-node@
|
|
21
|
+
uses: actions/setup-node@v6
|
|
17
22
|
with:
|
|
18
|
-
node-version:
|
|
23
|
+
node-version: 24
|
|
19
24
|
registry-url: https://registry.npmjs.org
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
|
|
26
|
+
# --- Pack & sign with Unity's official Package Manager CLI ---
|
|
27
|
+
# https://docs.unity3d.com/6000.3/Documentation/Manual/upm-cli.html
|
|
28
|
+
# Service account must hold the "Package Manager Package Signer" role.
|
|
29
|
+
- name: 🔏 pack & sign unity package
|
|
22
30
|
env:
|
|
23
|
-
|
|
31
|
+
UPM_SERVICE_ACCOUNT_KEY_ID: ${{ secrets.UPM_SERVICE_ACCOUNT_KEY_ID }}
|
|
32
|
+
UPM_SERVICE_ACCOUNT_KEY_SECRET: ${{ secrets.UPM_SERVICE_ACCOUNT_KEY_SECRET }}
|
|
33
|
+
UNITY_ORGANIZATION_ID: ${{ secrets.UNITY_ORG_ID }}
|
|
34
|
+
run: |
|
|
35
|
+
set -euo pipefail
|
|
36
|
+
|
|
37
|
+
# Install the official UPM CLI (adds `upm` to PATH via shell profile,
|
|
38
|
+
# which a non-interactive CI shell does NOT pick up — so resolve the
|
|
39
|
+
# binary directly below).
|
|
40
|
+
curl -fsSL https://cdn.packages.unity.com/upm-cli/install.sh | bash
|
|
41
|
+
|
|
42
|
+
UPM_BIN="$(command -v upm || true)"
|
|
43
|
+
if [ -z "${UPM_BIN}" ]; then
|
|
44
|
+
UPM_BIN="$(find "${HOME}" -type f -name upm 2>/dev/null | head -n1)"
|
|
45
|
+
fi
|
|
46
|
+
if [ -z "${UPM_BIN}" ]; then
|
|
47
|
+
echo "::error::Could not locate the 'upm' binary after install." >&2
|
|
48
|
+
exit 1
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
"${UPM_BIN}" --version
|
|
52
|
+
|
|
53
|
+
# Packs the package in the repo root and writes the SIGNED tarball to ./dist
|
|
54
|
+
"${UPM_BIN}" pack . --organization-id "${UNITY_ORGANIZATION_ID}" --destination ./dist
|
|
55
|
+
|
|
56
|
+
# --- Publish the SIGNED tarball (do NOT let npm repack the source) ---
|
|
57
|
+
- name: 🚀 publish
|
|
58
|
+
run: |
|
|
59
|
+
set -euo pipefail
|
|
60
|
+
TARBALL="$(ls ./dist/*.tgz | head -n1)"
|
|
61
|
+
echo "Publishing ${TARBALL}"
|
|
62
|
+
npm publish "${TARBALL}" --access public --provenance
|
|
@@ -9,6 +9,9 @@ namespace jeanf.EventSystem
|
|
|
9
9
|
public Transform targetDestination;
|
|
10
10
|
public bool isUsingFilter;
|
|
11
11
|
public FilterSO filter;
|
|
12
|
+
public bool shouldFade; // screen fade in/out during teleport
|
|
13
|
+
|
|
14
|
+
// fade is activated by default if we don't specify otherwise
|
|
12
15
|
public TeleportInformation(Transform objectToTeleport, Transform targetDestination, bool objectIsPlayer, FilterSO filter, bool isUsingFilter)
|
|
13
16
|
{
|
|
14
17
|
this.objectToTeleport = objectToTeleport;
|
|
@@ -16,6 +19,18 @@ namespace jeanf.EventSystem
|
|
|
16
19
|
this.objectIsPlayer = objectIsPlayer;
|
|
17
20
|
this.filter = filter;
|
|
18
21
|
this.isUsingFilter = isUsingFilter;
|
|
22
|
+
this.shouldFade = true;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// here we can specify to desactivate the fade using the shouldFade parameter
|
|
26
|
+
public TeleportInformation(Transform objectToTeleport, Transform targetDestination, bool objectIsPlayer, FilterSO filter, bool isUsingFilter, bool shouldFade)
|
|
27
|
+
{
|
|
28
|
+
this.objectToTeleport = objectToTeleport;
|
|
29
|
+
this.targetDestination = targetDestination;
|
|
30
|
+
this.objectIsPlayer = objectIsPlayer;
|
|
31
|
+
this.filter = filter;
|
|
32
|
+
this.isUsingFilter = isUsingFilter;
|
|
33
|
+
this.shouldFade = shouldFade;
|
|
19
34
|
}
|
|
20
35
|
}
|
|
21
36
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!114 &11400000
|
|
4
|
+
MonoBehaviour:
|
|
5
|
+
m_ObjectHideFlags: 0
|
|
6
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
+
m_PrefabInstance: {fileID: 0}
|
|
8
|
+
m_PrefabAsset: {fileID: 0}
|
|
9
|
+
m_GameObject: {fileID: 0}
|
|
10
|
+
m_Enabled: 1
|
|
11
|
+
m_EditorHideFlags: 0
|
|
12
|
+
m_Script: {fileID: 11500000, guid: e0ed7a8546959a8479bb135ed3cf5fc1, type: 3}
|
|
13
|
+
m_Name: GeneralPause
|
|
14
|
+
m_EditorClassIdentifier: jeanf.eventsystem::jeanf.EventSystem.BoolEventChannelSO
|
|
15
|
+
_guid:
|
|
16
|
+
description:
|
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fr.jeanf.eventsystem",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.126",
|
|
4
4
|
"displayName": "Event System",
|
|
5
5
|
"description": "This package contains a basic Event System based on Scriptable Objects as communication medium",
|
|
6
6
|
"unity": "2021.3",
|
|
7
|
+
"repository": {
|
|
8
|
+
"url": "https://github.com/lejeanf/EventSystem",
|
|
9
|
+
"type": "git",
|
|
10
|
+
"revision": "f22af26822f78d161a85c96fa377f9b8119d94fc"
|
|
11
|
+
},
|
|
7
12
|
"keywords": [
|
|
8
13
|
"jeanf",
|
|
9
14
|
"event system"
|
|
@@ -17,15 +22,15 @@
|
|
|
17
22
|
"fr.jeanf.propertydrawer": "1.1.6"
|
|
18
23
|
},
|
|
19
24
|
"samples": [
|
|
20
|
-
{
|
|
21
|
-
"displayName": "Player Channels",
|
|
22
|
-
"description": "A set of channels used for the vr_player package",
|
|
23
|
-
"path": "Samples/PlayerChannels"
|
|
24
|
-
},
|
|
25
25
|
{
|
|
26
26
|
"displayName": "Event filters",
|
|
27
27
|
"description": "A set of filters to segregate messages sent on the same channel",
|
|
28
|
-
"path": "Samples
|
|
28
|
+
"path": "Samples~/Filters"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"displayName": "Player Channels",
|
|
32
|
+
"description": "A set of channels used for the vr_player package",
|
|
33
|
+
"path": "Samples~/PlayerChannels"
|
|
29
34
|
}
|
|
30
35
|
]
|
|
31
36
|
}
|
package/Samples.meta
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{Samples → Samples~}/PlayerChannels/Grab/Grab_LeftHand_SetAttachTransform.asset.meta
RENAMED
|
File without changes
|
|
File without changes
|
/package/{Samples → Samples~}/PlayerChannels/Grab/Grab_RightHand_SetAttachTransform.asset.meta
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{Samples → Samples~}/PlayerChannels/MouseLookCameraReset Event Channel SO.asset.meta
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{Samples → Samples~}/PlayerChannels/ObjectTakenInSpecificLocationChannelSO.asset.meta
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{Samples → Samples~}/PlayerChannels/PoseEvent/LeftHandIsPointingEventChannel SO.asset
RENAMED
|
File without changes
|
/package/{Samples → Samples~}/PlayerChannels/PoseEvent/LeftHandIsPointingEventChannel SO.asset.meta
RENAMED
|
File without changes
|
/package/{Samples → Samples~}/PlayerChannels/PoseEvent/RightHandIsPointingEventChannel SO.asset
RENAMED
|
File without changes
|
/package/{Samples → Samples~}/PlayerChannels/PoseEvent/RightHandIsPointingEventChannel SO.asset.meta
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{Samples → Samples~}/PlayerChannels/PrimaryItemState Event VR_Channel SO.asset.meta
RENAMED
|
File without changes
|
|
File without changes
|
/package/{Samples → Samples~}/PlayerChannels/PrimaryItemStateWithUsedHandChannelSO.asset.meta
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|