【Quest対応・SDK3 Udonギミック】Camera Share System
- ¥ 0
【Camera Share Systemとは】 VRChat SDK3向けのワールドギミックです。 VRモードではカメラを、デスクトップモードでは顔をドームへ入れることで、ワールド設置のカメラで撮った写真を綺麗に撮影できます。 同じPrefabでPC、Questワールドに両対応しています。 【使用方法】 シャッターボタンを押した後、VRモードではカメラを、デスクトップモードでは顔をドームへ入れることで、ワールド設置のカメラで撮った写真を綺麗に撮影できます。 【依存アセット】 あらかじめ次のアセットをインポートしておく必要があります。 UdonSharp https://github.com/vrchat-community/UdonSharp/releases SSPictureFrame (StreamRenderTextureシェーダー) https://hirabiki.booth.pm/items/2181334 【更新履歴】 v1.0.1 2022-09-08 カメラを2回表示すると、初期位置がズレるバグを修正 v1.0.0 2022-07-28 公開 【ライセンス】 MIT License © 2020 yassann © 2021 クロスマーケット © 2019 Questラジオ体操部 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 (including the next paragraph) 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. 【パブリックAPI】 UdonBehaviour.SetProgramVariable() メソッドで、CameraToggleButton.Locked を切り替え後、UdonBehaviour.SendCustomEvent() メソッドで CameraToggleButton.SwitchLocked を呼ぶことで、他のUDONプログラムからロック状態の切り替えが可能です。 同様に CameraToggleButton.Pressed を切り替え後、CameraToggleButton.Switch を呼ぶことで、表示状態の切り替えが可能です。