File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
unity-environment/Assets/ML-Agents/Scripts Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -257,10 +257,9 @@ public abstract class Agent : MonoBehaviour
257257 void OnEnable ( )
258258 {
259259 textureArray = new Texture2D [ agentParameters . agentCameras . Count ] ;
260- for ( int i = 0 ; i < brain . brainParameters . cameraResolutions . Length ; i ++ )
260+ for ( int i = 0 ; i < agentParameters . agentCameras . Count ; i ++ )
261261 {
262- textureArray [ i ] = new Texture2D ( brain . brainParameters . cameraResolutions [ i ] . width ,
263- brain . brainParameters . cameraResolutions [ i ] . height , TextureFormat . RGB24 , false ) ;
262+ textureArray [ i ] = new Texture2D ( 1 , 1 , TextureFormat . RGB24 , false ) ;
264263 }
265264 id = gameObject . GetInstanceID ( ) ;
266265 Academy academy = Object . FindObjectOfType < Academy > ( ) as Academy ;
You can’t perform that action at this time.
0 commit comments