virtual-reality

Making Cursor Mouse Always Enabled In Unity CardBoard Plugin

时光总嘲笑我的痴心妄想 提交于 2019-12-13 09:36:48
问题 i think the title is clear , i want to make the mouse Cursor which is set in GazeInpuModule to be always enabled and in center of the both Left And Right Cameras , can anyone help me ?! ive tried changing the GazeInputModule code to place the cursor in center , but got nothing ! 回答1: Here's what worked for me: Create a Cursor GameObject in the Head hierarchy Add EventSystem in the project hierarchy In the EventSystem Gaze Input Module component, ensure "Show Cursor" is selected. In

Google Daydream Keyboard Unity UI TextInput?

坚强是说给别人听的谎言 提交于 2019-12-13 07:10:15
问题 I am attempting to create an input field in a google daydream app using the latest Google VR SDK for Unity and Unity 5.4.2. I am wondering if someone may have insight into integrating the Daydream Keyboard. I can place a canvas and input field but when I run the application on the Pixel and Daydream View, and select the inputfield the standard android keyboard renders. I am not sure if the Daydream Keyboard needs to be integrated separately in unity. The Daydream keyboard is installed and is

How to script a Button press in C#, to trigger another event?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 06:25:27
问题 I'm working on Unity, w/ Vuforia. I've got Virtual buttons that I need to act like the Up/Down Arrows on the keyboard to move an object which is not in its image target, so I'm searching for the basics. My class starts like this: public void OnButtonPressed(VirtualButtonAbstractBehaviour vb){ ... } What do I need to put in this to make it act like the up button? Without these virtual buttons, my script would move the object like this: void FixedUpdate(){ float moveHortizonal = Input.GetAxis(

How to include OVRManager in Three.js Scene?

六眼飞鱼酱① 提交于 2019-12-12 20:06:45
问题 I have created several Three.js/Javascript demo applications that I'm experimenting with in my new Oculus Go. I'm trying to enable the Go Controller to do stuff in my applications, and according to the Oculus Developer Center, the best thing to do is to include OVRManager in my scene so I have access to that API. That sounds good, but for all the documentation (https://developer.oculus.com/documentation/unity/latest/concepts/unity-ovrinput/) I can't see HOW to add OVRManager to my scene! I

unity how to control camera view using a single joystick?

≯℡__Kan透↙ 提交于 2019-12-12 16:19:20
问题 Does any one know how to control the camera view with only a single joystick? Currently im using a joystick from the switch. Heres my current code. public class MoveCamera : MonoBehaviour { public float speed = 1.0f; Camera cameraMovement; void Update () { float xRot = speed * Input.GetAxis("JoyStickX"); float yRot = speed * Input.GetAxis("JoyStickY"); transform.Rotate(xRot, yRot, 0.0f); } } 回答1: In the editor, create an empty game object called "Pivot" Make your camera a child of Pivot. Move

How to create VR Video player using Google Cardboard SDK for Unity

a 夏天 提交于 2019-12-12 07:08:47
问题 I just downloaded Google Cardboard SDK for unity. I am fine and able to create VR project. Setup is fine and everything is working fine. I am noob at VR Apps. Just stepped in VR Apps. I am planing to create my own VR Enabled Video Player for android, Just like the default Google Cardboard Youtube player. Can any one suggest me a link or can guide me in developing this app. 回答1: Scott Driscoll's answer totally works. I had some initial problems getting the Easy Movie Texture Unity plug-in to

How to access the cardboard trigger on google Gvr( in code)? 1.6 version SDK

旧城冷巷雨未停 提交于 2019-12-12 04:14:29
问题 How to access the cardboard trigger on google Gvr( in code) ? In the earlier version it was GvrViewer.Instance.Triggered 回答1: I use Input.GetButtonDown("Fire 1") and it works for me on the latest SDK version (1.6) and latest Unity version (5.6) EDIT: Use Input.GetButtonDown("Fire1") if you follow the default naming conventions for input events supported by unity. Please note that there is no space character between "Fire" and "1". Otherwise, you might the error - "ArgumentException: Input

What is the difference between ViewPort and Field Of View (FOV) in VR devices?

耗尽温柔 提交于 2019-12-12 02:45:26
问题 I understand the following. 1) ViewPort: It is like a window through which one can see the outside world. Basically, it is a 2D plane on which 3D objects gets projected. 2) Field Of View (FOV): FOV is a cone projection from the eye pupil or virtual camera. One can see everything inside that cone projection without turning the head. Monocular FOV is what a single eye can see Binocular FOV is what both eyes put together can see clearly Peripheral FOV is the region outside the binocular FOV but

Unity Particle Collider with Particle

为君一笑 提交于 2019-12-12 02:37:25
问题 Unity I create two collider effects and want them can have some function while them collider each other . but i don't know how to make two particle collider. How to make fire and water can collider each and fire will be put out by water. Thank for help!!!! 回答1: The unity particle system can collide with colliders(objects) in the scene if collision is enebled for particle system. But particle systems do not collide with each other. Particles have no volume, so it's not really possible. You

how can i add entity on cursor position using aFrame

五迷三道 提交于 2019-12-11 17:53:30
问题 i need to know how i can add entity on position cursor using aFrame on click i want to add entity far from camera 2 meter away or something like that or i need to know how can i get position on click event (x,y,z) but the problem here i what to add entity on 360 photo and i using a-sky tag and i tried to get position using js but i Failed it's working on entity only this.el.addEventListener('click', function (evt) { console.log('I was clicked at: ', evt.detail.intersection.point); for Example