GithubHelp home page GithubHelp logo

walidabazo / unity-2017.2-click-on-models-when-using-vuforia-6.5 Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 7.67 MB

Unity click on models when using Vuforia

vuforia video model 3d-models 3d click augmented-reality csharp button raycasthit

unity-2017.2-click-on-models-when-using-vuforia-6.5's Introduction

Unity-2017.2-click-on-models-when-using-Vuforia-6.5

Unity 2017.2 click on models when using Vuforia 6.5

To show all videos and download all unity pagackes for free must be Subscriber youtube channel https://www.youtube.com/channel/UCNJVG9_IebHe-NF-K_Y8Grw?sub_confirmation=1

Watch the video

using System.Collections; using System.Collections.Generic; using UnityEngine; using Vuforia; using System.IO;

public class Clicks : MonoBehaviour {

public GameObject Button, Buttoncube, cube;
// Use this for initialization
void Start () {
    Button = GameObject.Find("Button");
    Buttoncube = GameObject.Find("Buttoncube");
    cube = GameObject.Find("Cube");

    Button.SetActive(true);
    Buttoncube.SetActive(false);
    cube.SetActive(false);
}

// Update is called once per frame
void Update () {

    if (Input.GetMouseButtonDown(0))
    {
        Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
        RaycastHit hit;
        if (Physics.Raycast(ray, out hit))
        {
            if (hit.collider.tag == "Buttonone")
            {
                Button.SetActive(false);
                Buttoncube.SetActive(true);
                cube.SetActive(true);
            }

            if (hit.collider.tag == "Buttontow")
            {
                Button.SetActive(true);
                Buttoncube.SetActive(false);
                cube.SetActive(false);
            }
        }
    }
}

}

Can be start web Augmented reality

Https://Webxr.edafait.com

Good Company hosting and low price VPN

https://shorturl.edafait.com/?fZVHLor

YouTube Channel Wonder developer To Subscriber

https://youtube.com/channel/UCNJVG9_IebHe-NF-K_Y8Grw?sub_confirmation=1

unity-2017.2-click-on-models-when-using-vuforia-6.5's People

Contributors

walidabazo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sakuraiike

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.