• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by siddharth3322 · May 07, 2016 at 03:43 PM · iosunity5remoteappletv

Play/Pause Buttons Access in Apple TV

I want to access apple tv siri remote play and pause buttons. Using this buttons, I want to set up, play and pause game functionalities. But I can't able to find any way to access these.

Can you provide me help in this?

Comment

People who like this

0 Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image siddharth3322 · Jun 26, 2016 at 07:03 AM 0
Share

Any more detail in this, still I can't able to figure this out.

1 Reply

  • Sort: 
avatar image

Answer by aihodge · May 21, 2016 at 07:36 AM

The buttons that are available on the Siri Remote (Play/Pause, Menu, and pressing to click the Touch surface) correspond to joystick buttons 0, 14, 15. Configure the project's InputManager then check for those buttons like this:

     void Update()
     {
                 if(Input.GetButton("Fire1"))
                 {
                     print("joystick button 0");
                 }
                     if(Input.GetButton("Fire2"))
                 {
                     print("joystick button 14");
                 }
                 if(Input.GetButton("Fire3"))
                 {
                     print("joystick button 15");
                 }
     }
 

Comment

People who like this

0 Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image siddharth3322 · May 21, 2016 at 07:38 AM 0
Share

@aihodge, thanks for your reply because no body is replying for this and I am waiting for some person from long time :)

Can you give me just one example setting that I need to do in InputManager?

avatar image siddharth3322 · May 21, 2016 at 07:41 AM 0
Share

@aihodge, can I test this thing via tvOS Simulator?

avatar image siddharth3322 · Jun 26, 2016 at 08:44 AM 0
Share

I have set InputManager something like this and paste your update method code for testing purpose. But nothing got printed in xCode debug console. Now please give me more suggestion in this. alt text

screen-shot-2016-06-26-at-21227-pm.png (79.0 kB)
avatar image aihodge siddharth3322 · Jun 27, 2016 at 01:15 AM 0
Share

@siddharth3322 Sorry I missed your first message. I just checked my Input Manager and the only difference was the Type field was set to "Key or Mouse Button" - try that!

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

60 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

tvOS Icon sizes 0 Answers

tvOS Ad Network 0 Answers

How to build a native plugin with multiple platform support? 0 Answers

tvOS On Demand Resources: Unable to open archive file 0 Answers

Unity5 Editor: No any iOS devices available 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges