0
Answered

How to turn on an component ?

Mark 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 6

Hi All,

I know this should be simple, I hope.  I just need to find out how to turn on a Component

with bolt ?


Here is a screen capture ..  say I want to turn on and off the light ?

How can i do this with Bolt ?

Thanks for any help, very appreciated.

Thank you :-)

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Answer

+2
Answer

you're looking for Set Enabled, I believe. (or enabled, if using programmer naming)



And indeed, this is transferable to any Monobehaviour.

GOOD, I'M SATISFIED

This is why I love Bolt and the Bolt community as a whole.

Bolt is one of THE best things to happen in Unity in a very long time, imho ..

Satisfaction mark by Mark 3 years ago
+1

Don't see a photo, but I did answer this exact question a long time ago about turning off and on lights. Here's the link: https://support.ludiq.io/communities/5/topics/622-light-switch

Component.PNG





Gaa  talk about my short term memory   .here is the screen cap.

Thank so much for your answer , I will look at that.

What I need to do is turn on a script to active at a certain time,

I ma hoping the principles are transferable.


Thank you Jason

+2
Answer

you're looking for Set Enabled, I believe. (or enabled, if using programmer naming)



And indeed, this is transferable to any Monobehaviour.

+2

Cool Thank you so much for your time.  For the time being it's the simple stuff

that sometimes frustrates me so easily , and I hate asking.

I means a lot to me, thank you.