Question by
sir_ver · Jun 02, 2019 at 07:31 AM ·
namespaceresources.loadlearningmachine
Access to a variable in namespace
I am working with the ml-agents-toolkit. WHat I want to do is, to change the graph model through the script. To do so I have to access a public variable in a namespace. It is here: https://github.com/Unity-Technologies/ml-agents/blob/master/UnitySDK/Assets/ML-Agents/Scripts/LearningBrain.cs#L42
I have tried something like this but it is wrong:
brain.coreBrain = (MLAgents.CoreBrain)Resources.Load("Assets/Resources/Models/Level2.bytes", typeof(MLAgents.CoreBrain));
Comment