#PlasticButton
1 messages · Page 1 of 1 (latest)
Ok so gimme 1 sec
@lilac halo
nothing happens
The button won't turn red, and the text can't change
Nothing happens when
You told me the text was changing nonstop
What happened with the log statements you added?
It only called Disabled()
When I turn on IsEnabled
What is "it"? What logs did you add?
You're providing such scarce details and information it's very difficult to help you
Sorry, the logs said "This is Disabled being activated"
Thats it
I need a way to call "EditorTest()"
Well what does your code look like with the logs in it?
And what is the FULL log message
because that's not the full message
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
That.
Yes, it is
I turned on IsEnabled and the log said "This is Disabled being Activated"
no, it isn't. Click on the log message and look at the bottom of the console window. It will show the full message
Right - of course. because look at your code
The only thing that will actually run here is Start:
void Start()
{
IsEnabled = false;
Disabled();
}```
This is Disabled Being Activated
UnityEngine.Debug:Log (object)
PlasticButton:Disabled () (at Assets/Cosmetics/PlasticButton.cs:46)
PlasticButton:Start () (at Assets/Cosmetics/PlasticButton.cs:20)
aside from that, you would need a trigger collision to happen, or for some other script to run, for any of the other code to run
But this is very different from what you were asking before
before you said the thing was getting added infinitely
How do I make a call for "EditorTest()"
When IsEnabled is true
Why are you making your own IsEnabled system
you know there's a built in one
And you can use OnEnable and OnDisable for that
but that works only with the built in one
How do I use it?
I think this is what your script is doing
https://gdl.space/labovoraxi.cpp
Ok, and what do i do with this?
How am I suppose to tell you what to do with this. This is your code but using the built-in enabled property.