File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
com.unity.ml-agents/Runtime/Sensors Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,14 @@ internal int observationStacks
141
141
[ NonSerialized ]
142
142
RayPerceptionSensor m_RaySensor ;
143
143
144
+ /// <summary>
145
+ /// Get the RayPerceptionSensor that was created.
146
+ /// </summary>
147
+ public RayPerceptionSensor raySensor
148
+ {
149
+ get => m_RaySensor ;
150
+ }
151
+
144
152
/// <summary>
145
153
/// Returns the <see cref="RayPerceptionCastType"/> for the associated raycast sensor.
146
154
/// </summary>
@@ -223,7 +231,11 @@ public override int[] GetObservationShape()
223
231
return new [ ] { obsSize * stacks } ;
224
232
}
225
233
226
- RayPerceptionInput GetRayPerceptionInput ( )
234
+ /// <summary>
235
+ /// Get the RayPerceptionInput that is used by the <see cref="RayPerceptionSensor"/>.
236
+ /// </summary>
237
+ /// <returns></returns>
238
+ public RayPerceptionInput GetRayPerceptionInput ( )
227
239
{
228
240
var rayAngles = GetRayAngles ( raysPerDirection , maxRayDegrees ) ;
229
241
You can’t perform that action at this time.
0 commit comments