November 2017
Beginner
294 pages
6h 55m
English
The VrButton isn't actually a real button (well, it's all virtual, right?), meaning it doesn't have any geometry, but is an object that you may, nay, will, find very useful to include in the world.
The VrButton is mainly used for gaze detection. We discuss this and other VR movement (locomotion) techniques in Chapter 11, Take a Walk on the Wild Side. For now, let's just discuss what the VrButton is:
<VrButton style={{width: 0.7}} onClickSound={{ ogg: asset('click.ogg'), mp3: asset('click.mp3'), }} onClick={()=>this._onViewClicked()}> <Image style={{width:1, height:1}} source={{uri:'../../Assets/Images/gaze_cursor_cross_hi.png'}} inset={[0.2,0.2,0.2,0.2]} insetSize={[0.05,0.45,0.55,0.15]} > </Image></VrButton>
This VrButton wraps ...
Read now
Unlock full access