LocalCullingArea【VRCSDK3 / U#】
- ダウンロード商品LocalCullingArea V1.0.0¥ 0無料ダウンロードLocalCullingArea_V1.0.0.zip(46.4 KB)LocalCullingArea_V1.0.0.zip
- ダウンロード商品コーヒーを送る(中身は同じ)¥ 200
ローカルプレイヤーの指定範囲または距離に合わせてオブジェクト、SpritRenderer、Canvasを表示/非表示を切り替えます。 オブジェクト以外はフェード設定があります。 また、API連携させれば他のUDONにも出入り判定を通知できます。 MIT Licenseにより他アセットと同梱配布を許可しています。クレジットの記載は自由です。 インスペクターは日/英対応しています。詳細は同梱のREADMEをご覧ください。 UI等から離れた時に軽量化する為に作りました。 This tool toggles the visibility of Objects, SpriteRenderers, and Canvases based on a specified range or distance from the local player. Fade settings are available for elements other than standard Objects. It also supports API integration to notify other Udon scripts when the player enters or exits the detection zone. Distributed under the MIT License, allowing for inclusion in other assets; credit is optional. The Inspector supports both Japanese and English. It was created to optimize performance by hiding elements when the player moves away from them (such as UI).Please refer to the included README for details.
開発環境 AI/Operating AI
Unity 20223.22f1 VRCSDK 3.10.4 本アセットのコード制作には、OpenAIのAIコーディングツール「Codex」を使用しています。制作者が仕様と変更方針を決定し、Codexを用いてコードの 生成・修正・静的確認を行いました。 動作確認は制作者が実施済みです。 OpenAI Codex was used to generate, modify, and statically check the code according to specifications and change directions decided by the creator. Functional testing was performed by the creator. The README samples were statically checked only.
機能/Function
・共通動作 自分自身の位置で判定する安定モードと、トリガーによる当たり判定による軽量版があります。 どちらも形状がBox、Sphere、Capsuleに対応しています。 モード切替や位置判定の範囲をコライダーに合わせる機能も用意しています。 ※VRC Stationに入った際は、位置で判定であれば動作します。トリガーはプレイヤーの当たり判定が消える為判定できません。 ・CanvasとSpritRendererのフェード CanvasはCanvasGroupのAlpha、SpritRendererはClolorの透明度を変更しています。最終的な透明度は0または1になります。 ・Canvasについて Canvasは登録してボタンを押すと、CanvasGroupがあるかどうか検査し、無ければ追加する処理をしています。 ・Common Functionality There are two modes: "Stable Mode," which determines activation based on your own position, and a "Lightweight Version," which uses trigger-based collision detection. Both modes support Box, Sphere, and Capsule shapes. Features are also included to switch modes and align the detection range with the collider. *Note: When entering a VRC Station, only position-based detection works; trigger-based detection fails because the player's collision detection is disabled. ・Fading for Canvas and SpriteRenderer For Canvas, the Alpha value of the CanvasGroup is modified; for SpriteRenderer, the transparency of the Color property is adjusted. The final transparency will be either 0 or 1. ・About Canvas When a Canvas is registered and the button is pressed, the system checks for the presence of a CanvasGroup and adds one if it is missing.
アップデート履歴/Update
[2026 09 11: V1.0.0] 公開
MIT License
Copyright (c) 2026 尾黒こう(Ryuban) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

