Sorry to bring this up again, but I'm getting back to this and still have an issue.
I'm using:
- Unity 5.0.1f1
- AC 1.44
- UFPS 1.5.0
- The AdvancedPlayer prefab downloaded from adventurecreator.org.
I can't find a setup that works. Here's what I've tried:
Setup #1:
- MainCamera: tagged "MainCamera"
- FPSCamera: tagged "Untagged"
- Result: Error: (PlayerPrefab AC (vp_FPWeaponHandler)) Hierarchy error. This component must be added to a gameobject with vp_Weapon components in child gameobjects.
- Reason: vp_FPWeaponHandler runs Camera.main.GetComponentsInChildren<vp_Weapon>(), but Camera.main points to MainCamera.
Setup #2:
- MainCamera: Untagged
- FPSCamera: MainCamera
- Result: MainCamera has no MainCamera component.
- Reason: KickStarter finds the first GameObject tagged "MainCamera", which in this case is FPSCamera, which doesn't have a MainCamera component. If I add a MainCamera component to FPSCamera, it moves FPSCamera under _Cameras, which totally screws up UFPS.
Setup #3:
- MainCamera: MainCamera
- FPSCamera: MainCamera
- Result: Same as Setup #1.
Other failed setups:
- MainCamera:Untagged, FPSCamera:Untagged: No. AC can't find MainCamera component.
- MainCamera:MainCamera, FPSCamera:FirstPersonCamera: No. UFPS can't find weapons.
- MainCamera:FirstPersonCamera, FPSCamera:MainCamera: No. AC can't find MainCamera component.
Any solutions?
Comments