0
Answered

How to a select a Canvas for Set Alpha ?

thomas4d@gmail.com 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 8

when i try to Set the Canvas renderer for the Set Alpha Operation nothing shows up in the item selector  and I can drop a Canvas on to the Item space ? I tried convert one of the canvas to Prefab but that did show up in Bolt as well ?  what im i missing ?

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

I'm trying to control the Alpha using Canvas group and I can seem to set the value  ??


nothing shows up in the items picker  I created a NEW project to test and YES | canvas is showing .. WHy not it's not showing in my Main project has me ????

If I had to guess from your screenshot, you have a Flow Machine on "Canvas Screen GUI Info" which appears to be a prefab (it looks blue), meaning your graph is probably a Macro.  Macros, as they exist outside of the scene in the asset tree, cannot access scene objects directly.  (What would happen if it was instantiated in another scene without that object?)


So you need some way of finding the object.  That can be finding the object by name, byTag, by looking at Scene variables, etc.  If the object is a sub object, you can use object variables on the prefab itself, which sounds counter intuitive, but the object Variables component gets serialized with the object.  That means it can retain references to objects in it's own "tree".  However, that can't help you here, since you're looking for an object that exists outside of your prefab.

I think that's what is going on, sorry if I've misinterpreted though.




-- edit --

Okay, reading comprehension here.  It looks like you tried it without the prefab too.  You can set it in the new project, but not the old one?  When you open the object picker, can you see the scene tab at all?

Okay, reading comprehension here.  It looks like you tried it without
the prefab too.  You can set it in the new project, but not the old
one?  When you open the object picker, can you see the scene tab at all?


Nothing is showing in the object picker for the Canvas group Item ( both Canvas group items prefab or normal )

YES can set up up in a new project, But not the Main project I'm working in ??

you don't see either assets tab or scene tab?

the scene tab is NOT showing ??

+1

If the scene tab isn't showing, this is most likely being serialized as a macro or as an graph embedded in a macro, neither of which can access scene gameobjects (since they aren't part of the scene)

Answered

That would be the reason indeed. Unless there is a bug in the detection of scene-bound object, but there hasn't been any report of that yet.