0
Answered

Reflection from the hub not working. I will have to leave Game Creator

eagleeyez 4 months ago in Game Creator updated by Marti (Lead Developer) 4 months ago 3

Hi Marti,

I have got to a point where I need to use other scripts and just want to activate / deactivate variables within that component.

Get and Set variable on different scripts.

This is usually done through reflection and now I have tried out the HUB reflection variables they do not work.

This has brought me to a point where if this is not possible, then I am going to have to leave Game Creator until it is and go back to Playmaker.


Sorry, but this is very, very important 

Unity version:
2019.3.14
Game Creator version:
1.1.8
Answered

Hi Eagleeyez.

Sorry to hear this, but Playmaker and Game Creator are not mutually exclusive. You can use Playmaker along side Game Creator. In fact, these two projects are not "competitors" in sense. Playmaker is a visual scripting tool.

Hi Marti and thanks for your response.

I think the bigger question is will reflection work again in GC?

As it apparently did before with the HUB asset.


We just need a way to get and set properties on a script.


I think this is very important for later on down the road when wanting to use some 3rd party purchased assets. GC alone will close us off from other interesting assets.

And yes for the mean time I will have to combine using PM and GC together.

Thanks, and it would be great to know what you think about properties.

Reflection works for GC. It's a C# feature and supported by Unity. However, something must have changed in the latest Unity version, which has been a breaking change from the package in the GC Hub.