Indonesia Unity3D Game Developing
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Game Mewarnai Tutorial
[ASK HELP] Slide informasi di augmented reality EmptyThu Mar 23, 2017 10:21 am by kamil

» [ASK HELP] Slide informasi di augmented reality
[ASK HELP] Slide informasi di augmented reality EmptyTue Jan 03, 2017 8:58 pm by Briyan_ap

» ASK cara klik dan memunculkan informasi
[ASK HELP] Slide informasi di augmented reality EmptyTue Jan 03, 2017 8:54 pm by Briyan_ap

» [Ask] mengubah game PC menjadi game Android
[ASK HELP] Slide informasi di augmented reality EmptyTue Jan 03, 2017 10:57 am by NiethaChan

» Virtualisasi suatu Gedung mengunakan unity3D + google seketchUP
[ASK HELP] Slide informasi di augmented reality EmptySat Dec 31, 2016 1:06 am by zeepank

» Minta Tolong, slideshow ngga muncul saat object di klik
[ASK HELP] Slide informasi di augmented reality EmptyTue Dec 27, 2016 12:53 pm by Briyan_ap

» tolong dong lagi bikin button rotate tp button ga keluar
[ASK HELP] Slide informasi di augmented reality EmptyWed Dec 21, 2016 1:15 pm by Lita Misae

» algoritma Minimax/negascout buat checkers
[ASK HELP] Slide informasi di augmented reality EmptyWed Nov 30, 2016 1:51 am by ardiansa

» screenshot
[ASK HELP] Slide informasi di augmented reality EmptyWed Nov 16, 2016 10:15 pm by azhari

Statistic

[ASK HELP] Slide informasi di augmented reality

Go down

[ASK HELP] Slide informasi di augmented reality Empty [ASK HELP] Slide informasi di augmented reality

Post  Briyan_ap Tue Jan 03, 2017 8:58 pm

Maaf gan, mau tanya, ane ngikutin tutorial buat munculin slide info disini :



Tapi kenapa object button di AR nya ketika di klik ngga mucul slide informasinya ya? Terimakasih atas bantuannya...

Ane pakai untity 5.5.0f3 dan Vuforia 6.2.6

Script yang dipakai :

Code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class InfoKlik : MonoBehaviour {

   public Transform target1 ;
   public Texture gambar1,gambar2,gambar3 ;
   public string info1,info2,info3;
   public Vector2 scrollposition1 = Vector2.zero;
   public bool show = false;

   void update() {
      if(Input.GetMouseButton(0)) {
         Ray ray = Camera.main.ScreenPointToRay (Input.mousePosition);
         RaycastHit hit;
         if(Physics.Raycast(ray, out hit)) {
            if(hit.transform == target1) {
               show=true;
            }
         }
      }
   }


   void OnGui () {
      if(show==true) {
         GUI.BeginGroup (new Rect (Screen.width / 2 - 200, Screen.height / 2 - 250, 800, 500));
         GUI.Box (new Rect (0, 50, 405, 360), "informasi");

         scrollposition1 = GUI.BeginScrollView(new Rect(30,0,350,390),scrollposition1,new Rect(0,0,1150,200));

         GUI.DrawTexture (new Rect(0,90,350,210),gambar1);
         info1 = GUI.TextArea(new Rect(0,300,350,50),info1,200);

         GUI.DrawTexture (new Rect(400,90,350,210),gambar2);
         info2 = GUI.TextArea(new Rect(400,300,350,50),info2,200);

         GUI.DrawTexture (new Rect(800,90,350,210),gambar3);
         info3 = GUI.TextArea(new Rect(800,300,350,50),info3,200);

         GUI.EndScrollView();
         GUI.EndGroup();

      }
   }




}

Briyan_ap
Briyan_ap
Unity3D Newbie
Unity3D Newbie

Posts : 3
Points : 7
Reputation : 0
Join date : 2016-12-27

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum