#Needle UI Buttons
1 messages · Page 1 of 1 (latest)
Thanks for reaching out @lunar badger
Please read through the following and share the information requested. This will help us to better assist you.
Description
Describe the issue that you're seeing. Please be as detailed as possible e.g. is this issue happening in Unity or Blender, which Needle Engine version are you using, do you see any errors in the Editor or Browser console, etc.
Information:
- If you're using Unity click the menu item Needle Engine/Report a Bug/Copy Project Info to Clipboard. Please share the results below.
- Please provide code snippets using Discord Code Blocks
- Have you contacted Needle through another channel or just through Discord?
Useful Links
- <Needle Engine Samples> - Find examples that you can download or try out in the browser for many common usecases
- <Needle Engine Documentation>
Did you know 💡
We now also have a forum with AI support: Join now with your discord account - or request help by clicking the button below.
How it works:
Reply to the messages of the bot that end with a thread_id to interact with it and ask follow-up questions. You can also mention the bot directly in this channel to get help.
Help requested: please wait a moment...
Hi Matmat,
To quickly change the size of buttons without accessing the CSS, you can use inline styles with JavaScript. Here's a simple solution:
Pseudocode:
- Query all button elements.
- Iterate through each button and set its size via inline styles.
Code:
document.querySelectorAll("button").forEach(button => {
button.style.width = "100px"; // Set desired width
button.style.height = "50px"; // Set desired height
});
Add this script to your Needle Engine project, and it will update the size of all buttons. Adjust the width and height values as necessary.
You can also reference this for more customized styling:
If you need further assistance, feel free to ask!
1 messages left
GPT 4o
thread_OSjnjLGcZ6E30wA3ZKHURMYJ
Thanks for your feedback!