Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 uranus10 · Jan 20, 2019 at 09:05 PM · user interfaceimagesimage loader

Button images disappear after selecting a button from the skills panel.

Specifically, the buttons work as intended, they still function however their images no longer do once I use a specific skill. I use this exact set up in my other game (on hiatus) and it works perfectly, the attacks come out and when the unit reaches back to the top of the processing bar the buttons appear.

Below is a preview of how its supposed to look alt text

Below is what happens after I select and use a technique

alt text

As you can see the button images don't appear but I can assure you they're still there and fully functionally but I'm wondering if anyone has any idea as to why this is happening. I've never had this happen with the other game which has the exact same set up so I'm beyond confused. Thanks in advance and here's a snippet of code which shows what happens with the skill window active and with the skill window inactive. And I know it works properly but maybe someone will see something I don't.

 {
                     if (skillwindow.activeSelf == true)
                     {
                         Attack.SetActive(false);
                         Defend.SetActive(false);
                         Wait.SetActive(false);
                         Technique.SetActive(false);
                     }
                     else
                     {
                         defendstatus = false;
                         Attack.SetActive(true);
                         Defend.SetActive(true);
                         Wait.SetActive(true);
                         Technique.SetActive(true);
                         ButtonManager.unitid = id;
                         currentstate = UnitStates.Idle;
                     }
                 }


unitysupposedtobe.jpg (20.5 kB)
unityissue.jpg (17.0 kB)
Comment
Add comment · Show 5
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 xxmariofer · Jan 20, 2019 at 09:13 PM 0
Share

Need extra information, if you are sure can you make sure they are at the same position? set them active to false at start and reset them to true just one line before for checking if the bug is happening there too? also if you can give us some herarchy photos would help.

avatar image uranus10 xxmariofer · Jan 20, 2019 at 09:18 PM 0
Share

I can confirm they're at the same position: When I click on where they're supposed to be they work and they appear like this in the editor: alt text

This is the hierarchy: alt text

unityissue2.jpg (14.0 kB)
unityhierachy.jpg (21.8 kB)
avatar image xxmariofer uranus10 · Jan 20, 2019 at 09:23 PM 0
Share

It is weird, it feels like your Image component was removed/desactivate, also the text should be shown, make sure the Image script in the button is active.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

100 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 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

how to Put a Picture In Text ? 0 Answers

Loading some images doesn't work 1 Answer

Integrated VideoPlayer component but for images? 0 Answers

UI slider with dynamic arrangement 1 Answer

object won't move with script or when I change the values in the inspector during play mode 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