#PlasticButton

1 messages · Page 1 of 1 (latest)

quick relic
#

Here is the thread, lets text in here

#

Ok so gimme 1 sec

#

@lilac halo

#

nothing happens

#

The button won't turn red, and the text can't change

lilac halo
#

Nothing happens when

#

You told me the text was changing nonstop

#

What happened with the log statements you added?

quick relic
#

When I turn on IsEnabled

lilac halo
quick relic
#

Sorry, the logs said "This is Disabled being activated"

#

Thats it

#

I need a way to call "EditorTest()"

lilac halo
#

because that's not the full message

quick relic
#

That.

quick relic
#

I turned on IsEnabled and the log said "This is Disabled being Activated"

lilac halo
# quick relic Yes, it is

no, it isn't. Click on the log message and look at the bottom of the console window. It will show the full message

lilac halo
#

The only thing that will actually run here is Start:

    void Start()
    {
        IsEnabled = false;
        Disabled();
    }```
quick relic
#

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)

lilac halo
#

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

quick relic
#

How do I make a call for "EditorTest()"

lilac halo
#

wdym make a call for

#

When do you want it to run?

quick relic
#

When IsEnabled is true

lilac halo
#

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

quick relic
#

How do I use it?

neat forum
quick relic
neat forum