public static RendererFirstPersonFlags Create(Transform root, Renderer r, UniGLTF.Extensions.VRMC_vrm.FirstPersonType flag) { return(new RendererFirstPersonFlags { Renderer = r.transform.RelativePathFrom(root), FirstPersonFlag = flag, }); }
public static VrmLib.FirstPersonMeshType FromGltf(this UniGLTF.Extensions.VRMC_vrm.FirstPersonType src) { switch (src) { case UniGLTF.Extensions.VRMC_vrm.FirstPersonType.auto: return(FirstPersonMeshType.Auto); case UniGLTF.Extensions.VRMC_vrm.FirstPersonType.both: return(FirstPersonMeshType.Both); case UniGLTF.Extensions.VRMC_vrm.FirstPersonType.firstPersonOnly: return(FirstPersonMeshType.FirstPersonOnly); case UniGLTF.Extensions.VRMC_vrm.FirstPersonType.thirdPersonOnly: return(FirstPersonMeshType.ThirdPersonOnly); } throw new NotImplementedException(); }