添い寝・接近通知ギミック - Co-Sleep Notifier
- Digital300 JPY

誰かが添い寝しに来てくれたときにアラームで教えてくれる VRChat アバター用ギミックです。 書き置きに来てくれた人に反応しないように、一定時間以上近くにいたときだけアラームが鳴ります(時間は 3, 10, 30, 60 秒から選択できます)。 ローカル動作で完結し、他のプレーヤーには影響を与えません。Synced Expression Parameter も消費しません。 検出範囲内に他のプレーヤーの Head ボーンが入っている状態が一定時間続くとアラームが鳴る仕組みです。 すでに1人目を検出している場合、2人目以降には反応しません。 検出範囲はワールド固定できるため、2人で添い寝しつつ3人目を待ちたい場合等には、すでにいる人に検出範囲が被らないよういい感じにワールド固定して使ってください。
導入方法
Modular Avatar, lilToon をあらかじめ導入しておいてください。 パッケージを Unity プロジェクトにインポートし、 Assets/Iridoatelier.net/CoSleepNotifier/CoSleepNotifier.prefab を Hierarchy のアバター直下に導入してアップロードしてください。
Tips
Q. アラーム音を変えたい A. Assets/Iridoatelier.net/CoSleepNotifier/Assets/Alarm.wav を置き換えてください Q. アラームはどうやって止める? A. メニューで Enabled をオフにすると止まります
Description
This is a VRChat avatar gadget that alerts you with an alarm when someone comes to sleep next to you. To avoid reacting to people who just drop by to leave a note, the alarm only sounds when someone stays nearby for a certain amount of time (you can choose from 3, 10, 30, or 60 seconds). It operates entirely locally and does not affect other players. It also does not consume Synced Expression Parameters. Note: The alarm sounds when another player’s Head bone remains within the detection range for a set period of time. If the first person has already been detected, it will not react to subsequent players. Since the detection range can be world-fixed, if you want to co-sleep with two people while waiting for a third, please adjust the world-lock settings so that the detection range does not overlap with the people already present.
Installation
Please install Modular Avatar and lilToon in advance. Import the package into your Unity project, then place Assets/Iridoatelier.net/CoSleepNotifier/CoSleepNotifier.prefab directly under the Avatar node in the Hierarchy and upload it.
Tips
Q. I want to change the alarm sound. A. Replace the file Assets/Iridoatelier.net/CoSleepNotifier/Assets/Alarm.wav. Q. How do I stop the alarm? A. Turn off “Enabled” in the menu to stop it.

