Auto-Facing UdonSharp Script for VRChat World|プレイヤー自動追従スクリプト
- ダウンロード商品¥ 0

Axinovium LookAtLocalPlayer – UdonSharp Script Description A lightweight UdonSharp script that automatically rotates any object to face the local player. Perfect for signs, characters, interactive props, and environmental effects in your VRChat world. 🛠️ How to Use Add LookAtLocalPlayer.cs to any GameObject in your Scene. Adjust settings in the Inspector: Facing Axis – Choose which side points toward the player. Custom Rotation Offset – Fine-tune the rotation angle. Flatten Y / Smooth / Distance Limit – Control motion and performance. Press Play – The object will smoothly rotate toward the player. ⚠️ Troubleshooting If your object squashes, stretches, or changes scale when rotating: The issue is caused by non-uniform scale, negative scale, or being under a parent with physics constraints. ✅ Fix: Move the script to a clean parent (scale 1,1,1) and place your visual mesh as its child. ✅ Compatibility Works with VRChat SDK3 (Worlds) Fully compatible with UdonSharp Optimized for VR and Desktop modes 📜 License & Permissions ✅ Free for personal and commercial use ✅ Modification allowed ❌ Redistribution or resale prohibited 💖 Support the Creator This script is 100% free. If it helps your project, please consider supporting future tools and open-source projects: 🔗 Patreon.com/Axinovium JP: 🇯🇵 Axinovium LookAtLocalPlayer – UdonSharp Script 自動的にプレイヤーの方向を向く、軽量なUdonSharpスクリプトです。 看板、キャラクター、インタラクティブな小道具などに最適です。 🛠️ How to Use / 使い方 Add / 追加 LookAtLocalPlayer.cs をシーン内の任意のGameObjectに追加します。 Adjust Settings / 設定を調整 - Facing Axis / 向き軸 – どの面がプレイヤーを向くかを設定 - Custom Rotation Offset / 回転オフセット – 角度を微調整 - Flatten Y / Smooth / Distance Limit – 動作とパフォーマンスを調整 Press Play / 再生ボタンを押す オブジェクトがスムーズにプレイヤーの方向を向くようになります。 ⚠️ Troubleshooting / トラブルシューティング オブジェクトが伸びる・潰れる・スケールが変わる場合: 原因:非一様スケール(X/Y/Zが異なる)、負のスケール、または物理制約付きの親オブジェクト下にあること。 ✅ 解決方法: スクリプトをスケール(1,1,1)のクリーンな親オブジェクトに移動し、 ビジュアルメッシュをその子オブジェクトとして配置してください。 ✅ Compatibility / 互換性 VRChat SDK3 (Worlds) に対応 UdonSharp に対応 VRモード・デスクトップモード 両方で最適化済み 📜 License & Permissions / ライセンスと使用許可 ✅ 個人・商用利用 無料 ✅ 改変OK ❌ 再配布・再販禁止 💖 Support the Creator / クリエイターを応援 このスクリプトは完全無料です。 もし役立った場合は、今後のツール開発を支援していただけると嬉しいです。 🔗 Patreon.com/Axinovium