Projemizde Target gördüğünde üç boyutlu bir cisim oluşturan örnek gerçekleştirmiştik.
<<Buradan>> bir önceki yazıya ulaşabilirsiniz.
Şimdi de aynı örnek içerisinde Target’ımızı gördüğünde bize hem 3 boyutlu cisim hemde Ses dosyası çalan örneği gerçekleştireceğiz. Bir önceki yazıda olduğu gibi bu yazıdakileri de Video olarak inceleyebilirsiniz.
Önce bir adet Game Object oluşturuyoruz. Ve daha sonra ismini sound olarak değiştiriyoruz. Oluşturduğumuz game object bizim ses dosyamızı referans edecek bu yüzden Projemizin Assets klasörüne dilerseniz yeni bir klasör oluşturup dilerseniz oluşturmadan Ses dosyamızı sürükle-bırak yolu ile dahil ediyoruz.
Ben proje klasör içerisinde bir adet Source klasörü oluşturdum ve bunun içersine ses dosyamı ekledim.
Daha sonra projemde Image Target kısmı seçili iken iınspector pencerisinde Defaul Trackable Event kısmına geliyor ve DefaultTrackableEventHandler Scriptine birkaç satır kod eklemek için çift çıklayıp açıyorum.
Öncelikle Public bir değişken oluşturdum. Tür olarak AudioSource verdim.OnTrackingFound kısmının hemen altında Ses dosyamı çalıyorum ve kaybolduğunda ise durduruyorum.
Daha sonra projemde Image Target kısmı seçili iken iınspector pencerisinde Defaul Trackable Event kısmına geliyor ve DefaultTrackableEventHandler Scriptine birkaç satır kod eklemek için çift çıklayıp açıyorum.
Ses dosyamı oluşturduğum ve adını Sound2 olarak değiştirdiğim Game Object’imin içine sürüklüyorum.
Daha sonra içerisinde Ses dosyam olan objemi biraz önce dikkat ettiğimiz Scriptin altında bizden ses dosyası beklenen yere sürüklüyorum.
İşlemler bitti. Bundan sonra ki aşamamız projemizi Android Platformuna Export edeceğiz ya da Windows Platformunda çalıştıracağız. İyi Çalışmalar.
http://0daymusic.org
You’re a very helpful site; could not make it without ya!
You always do the right thing. God Bless you.
Thank you
Looks realy great! Thanks for the post.
My name is Kya Pierce. And I am a professional Content writer with many years of experience in writing.
My interest is to solve problems related to writing. And I have been doing it for many years. I have been with several associations as a volunteer and have assisted in many ways.
My love for writing has no end. It is like the air we breathe, something I cherish with all my being. I am a full-time writer who started at an early age.
I’m happy that I`ve already sold several copies of my books in different countries like USA, Russia and others too numerous to mention.
I also work in a company that provides assistance to many people from different parts of the world. Clients always come to me because I work no matter how complex their projects are. I help them to save time, because I feel happy when people come to me for professional help.
Ghost Writer – Kya Pierce – Ebrcn Team
Hi guys, my name is Kya Pierce!
I`m an academic writer and I`m going to change your lifes onсe and for all
Writing has been my passion since early childhood and now I can`t imagine my life without it.
Most of my books were sold throughout Canada, USA, China and even Australia. Also I`m working with services that help people to save their nerves.
People ask me “Mr, Kya Pierce, I need your professional help” and I always accept the request, `cause I know, that only I can save their time!
Professional Writer – Kya Pierce – Crc-Bologna Corps