You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
I have a GameManager script and I wanted to change the graph model while the game is running through script:
public GameObject brain;
void function(){
brain.GetComponent<????>()
}
And here I noticed that I can't have access to the script like this. Do you know how to do this? And would I get problems if I change the Graph model while the game is running? My intention is to increase the degree of difficulty of the game.
The text was updated successfully, but these errors were encountered:
This is an interesting use-case, and it should definitely be possible. What version of ML-Agents are you using? As of v0.6, Brains are not gameobjects, but rather scriptable objects. You will want to access the learning-brain you are using, and grab the model variable to change it.
Hi @MrGitGo, I am going to close this issue for now due to inactivity. Hopefully you were able to resolve your issue. Please feel free to reopen if you still have issues.
I have a GameManager script and I wanted to change the graph model while the game is running through script:
And here I noticed that I can't have access to the script like this. Do you know how to do this? And would I get problems if I change the Graph model while the game is running? My intention is to increase the degree of difficulty of the game.
The text was updated successfully, but these errors were encountered: