Activate Bool
How do I convert Bool from false to true using voice commands rather than key commands?
The animator seems to be set up fine because as soon as I click on the true Bool the animation plays.
C# code that I have so far does not work..
using System.Collections;
using System.Collections.Generic;
using HoloToolkit.Unity;
using UnityEngine;
public class CalgaryOneCameraOne : MonoBehaviour
{
public float speed;
public void Update()
{
// Move from point a to point b by .2 each frame - assuming called in Update.
// Will not overshoot the destination, so .2 is the max amount moved.
transform.position = Vector3.MoveTowards(transform.position, new Vector3(2.25f, -12.94f, -8.9f), .01f);
}
public CalgaryOneCameraOne(float speed)
{
this.speed = speed;
}
}
Your question is about setting a bool to true
using voice command
Your code does not mention any boolean variable
You have tagged the question is "augmented-reality"
Please, edit your question and ask one specific thing, with the correct code.
Thank you. The code that I have there is for moving the camera. Sorry... $$anonymous$$y question was exactly what you said. How do I set a Bool to true using voice command when its default is false? I do not want to use a key to make this happen, but a voice command.
Answer by tormentoarmagedoom · Apr 25, 2018 at 07:42 AM
Good day.
You need to know (i've never think about this) how to make unity recognise your voice commands, once you get that, the rest will be very simple.
I recoomend you to wach some tutorials, like this one.
Bye!
Your answer
Follow this Question
Related Questions
How do i improve the quality of camera in ar app (Android) 0 Answers
How to save part of spatial map as .obj file 0 Answers
Gameplay script made for Vuforia in Unity not working 0 Answers
Voice Command using HoloToolKit 0 Answers
Unity and Vuforia app crashes on iOS after reloading scene with ARCamera 3 Answers