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 /
avatar image
0
Question by Catlard · Oct 21, 2013 at 04:03 AM · pluginplugins3dtext3d textbook

Detecting a word clicked on in 3D text?

Hey!

So, I'm interested in making some 3D text which can be broken down into sounds -- I've attached an image which, hopefully, will describe what i'm talking about. I know how I would go about creating the sound system for breaking down the words -- but I don't know if there's any way to know, definitely, which word in a 3D text object that a user is clicking on, and then somehow separate that word from the others surrounding it. The ultra-expensive way, I guess, would be to just have a 3D text object for each clickable word. But this might get a bit hairy if there are too many words, right? Are there any plugins that make a single 3d text able to detect which word/character has been clicked on? alt text

untitled-1.jpg (51.6 kB)
Comment
Add comment · Show 3
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 Owen-Reynolds · Oct 21, 2013 at 04:15 AM 1
Share

If you want to thicken/enlarge that one word, wouldn't it have to be a separate 3DText?

As far as size/spacing of words, best way I've found is to use the GUIStyle size command, and then trial&error 1 pixel of a certain font size equal 0.021 meters (I just made that # up) in a 3DText. Unless you have a monospace font (which maybe you do?) then just make a 20 letter 3DText, measure and divide by 20 (more letters to reduce rounding error of measuring just one) to get meters/letter.

avatar image Catlard · Oct 21, 2013 at 04:41 AM 0
Share

Ah, the $$anonymous$$ono space font information seems very important. Thanks for that. I guess it would have to be separate -- but as long as I could figure out which word I was clicking on, and I could guarantee that each of the letters was the same size, then I could put another 3D text on top of the first, and just fade out the first one before making the second larger.

avatar image Owen-Reynolds · Oct 21, 2013 at 03:43 PM 1
Share

"fade out the first one": now you need to make 2 new 3DTexts with just that word. Any way of doing it, I think you need code to create the single word at the correct position, which will be a pain.

Do you really want to remake the sentence into part1, the clicked word by itself, then part2? It would be easier to make every word by itself to begin with. Then it won't be much extra work to give each 3DText a collider.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Catlard · Oct 24, 2013 at 02:15 AM

Ah! I figured it out, and have made it a package for easy downloading. It uses, at max, two 3dTexts to do what we were talking about. I hope it helps someone else! I tried uploading it to this, but it wouldn't take. Funny that unitypackages won't upload to unity answers. What else WOULD you upload?

https://mega.co.nz/#!t9AkGQzb!XqRQmlQR2LmE7znZU4MTi3cLvc8AyHJA6lDjpBZcLBg

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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

15 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

Related Questions

How do I implement In-App purchases for Windows/Windows Phone? 2 Answers

iOS Launch Options 0 Answers

Calling an Android plugin from Javascript? 0 Answers

Is there any method to callback from plugin (Windows)? 2 Answers

Plugin for Facebook Native Ads 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