Help with Set Data Context
Hi!
I'm being really stupid right now.
The following:
I have a View, a GameMode and a ViewController
I want to set the Data Context (ViewController) in my GameMode.
However, this does not work. What am I doing wrong?
View:

GameMode:

ViewController with Test as variable:

I'm being really stupid right now.
The following:
I have a View, a GameMode and a ViewController
I want to set the Data Context (ViewController) in my GameMode.
However, this does not work. What am I doing wrong?
View:

GameMode:

ViewController with Test as variable:

Re: Help with Set Data Context
Have you tried setting the DataContext directly in the GameMode and making sure it’s properly passed to the View?
Running your store well will make you happy to see Monkey Mart's lively environment and busy activity.
Re: Help with Set Data Context
Hi,
It's hard to tell without debugging. Off the top of my head, I would first check that the object you're setting the Test property value on is actually the same as the one set as DataContext (you can print the names of the objects on screen from Blueprint), and that the event that sets the value is actually being called (again, you can just print to screen from Blueprint).
It's hard to tell without debugging. Off the top of my head, I would first check that the object you're setting the Test property value on is actually the same as the one set as DataContext (you can print the names of the objects on screen from Blueprint), and that the event that sets the value is actually being called (again, you can just print to screen from Blueprint).
Re: Help with Set Data Context
Also you could start with one of our examples, that are already working and provide a valid Data Context and start modifying from it.
Who is online
Users browsing this forum: Bing [Bot] and 3 guests