Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 /
This question was closed Dec 05, 2014 at 12:37 AM by DarkSlash for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by DarkSlash · Nov 07, 2014 at 08:26 PM · uiplaymaker

Playmaker and new UI

I have downloaded the Unity 4.6 beta with the new UI. I have Playmaker, and I want to know how to interact with the new UI. For example, I create a button from Unity, I add a state machine to it, and I want to catch the click button. Can I do that?

Comment
Add comment
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

2 Replies

  • Sort: 
avatar image
0
Best Answer

Answer by DarkSlash · Nov 10, 2014 at 08:37 PM

Solution: http://hutonggames.com/playmakerforum/index.php?topic=8452.0

Comment
Add comment · 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
0

Answer by Kiwasi · Nov 08, 2014 at 12:30 AM

Yes.

  • Create a new event listener on the OnClick. (click the little plus button)

  • Drag the GameObject with the state machine onto the slot

  • Select the appropriate function from the drop down list

You can only select functions that are public, have a return type of void, and take no arguments or a single argument of a select few types. See the documentation for details.

If the playmaker state machine does not have an appropriate method you may need to write your own.

Comment
Add comment · Show 2 · 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 DarkSlash · Nov 08, 2014 at 05:25 PM 0
Share

How about if I want to set the value of a global variable in FS$$anonymous$$?

avatar image Kiwasi · Nov 08, 2014 at 07:52 PM 0
Share

The Play$$anonymous$$aker reference is difficult to follow on this (I don't use playmaker myself). It looks like you need to define a method that will set your variable.

 public void SetGlobalVariable (){
     // Code to set the variable here
 }

No doubt playmaker will come out with a better way to do it soon. You might want to contact them or check their forums. I'm sure they have hundreds of people wanting to interact with the UI that can't write a script of any description.

Follow this Question

Answers Answers and Comments

27 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

Related Questions

How to click on button that is behind transparent image in New UI? 2 Answers

Making a GUI element follow the cursor without delay. 2 Answers

How to fix the world space canvas not showing in game 0 Answers

New UI: How to change depth/order from script? 4 Answers

Canvas Graphics raycaster, prevent 2d and 3d physic raycast 0 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