UniVRM/Scripts/FirstPerson
emilianavt 45da02f146 Allow first/third person layers to be named
The first person and third person layers used hard coded IDs. If these layers
are already in use in a Unity project, this use can lead to conflicts between
the layers used by UniVRM and those inside the project. This patch allows using
Unity's layer settings to assign layer IDs through names ("VRMFirstPersonOnly"
and "VRMThirdPersonOnly").

If no named layers are found, the predefined layer IDs will be used. Since the
layer IDs are accessed only during model setup, there should be no performance
impact from this change. The names of the fields storing the layer IDs have not
been changed to keep API compatibility.

This issue was originally noticed by @Deatrathias (Virtual_Deat on Twitter).
2018-11-24 20:59:14 +01:00
..
Editor add VRM scripts 2018-03-27 19:46:11 +09:00
Editor.meta add VRM scripts 2018-03-27 19:46:11 +09:00
VRMFirstPerson.cs Allow first/third person layers to be named 2018-11-24 20:59:14 +01:00
VRMFirstPerson.cs.meta add VRM scripts 2018-03-27 19:46:11 +09:00
VRMFirstPersonCameraManager.cs add VRM scripts 2018-03-27 19:46:11 +09:00
VRMFirstPersonCameraManager.cs.meta add VRM scripts 2018-03-27 19:46:11 +09:00