Commit Graph

6 Commits

Author SHA1 Message Date
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
ousttrue
b7ab741b16 Fixed CreateHeadlessModel for MeshRenderer 2018-10-10 18:17:24 +09:00
ousttrue
0d47703bd9 "class glTF_VRM: gltf" to "partial class glTF_extensions" 2018-07-19 23:05:17 +09:00
ousttrue
789b9b73e5 add EnumUtil 2018-04-07 17:23:30 +09:00
ousttrue
ac833b57f9 バウンディングボックスの位置を同じにするためにheadlessモデルの作成階層をオリジナルの子階層に変更 2018-04-03 16:33:47 +09:00
ousttrue
2b34694ab3 add VRM scripts 2018-03-27 19:46:11 +09:00