[Tooltip("The approximate height of the play space, in meters.")]
privatefloatboundaryHeight=3.0f;
/// <summary>
/// The developer defined height of the boundary, in meters.
/// </summary>
/// <remarks>
/// The BoundaryHeight property is used to create a three dimensional volume for the play space.
/// </remarks>
publicfloatBoundaryHeight=>boundaryHeight;
#regionFloorsettings
[SerializeField]
[Tooltip("Should the floor be displayed in the scene?")]
privateboolshowFloor=true;
/// <summary>
/// Should the boundary system display the floor?
/// </summary>
publicboolShowFloor=>showFloor;
// todo: consider allowing optional custom prefab
[SerializeField]
[Tooltip("The material to use when displaying the floor.")]
privateMaterialfloorMaterial=null;
/// <summary>
/// The material to use for the floor <see href="https://docs.unity3d.com/ScriptReference/GameObject.html">GameObject</see> when created by the boundary system.
/// </summary>
publicMaterialFloorMaterial=>floorMaterial;
[PhysicsLayer]
[SerializeField]
[Tooltip("The physics layer to assign to the generated floor.")]
privateintfloorPhysicsLayer=0;
/// <summary>
/// The physics layer to assign to the generated floor.
/// </summary>
publicintFloorPhysicsLayer=>floorPhysicsLayer;
[SerializeField]
[Tooltip("The dimensions of the floor, in meters.")]
privateVector2floorScale=newVector2(10f,10f);
/// <summary>
/// The size at which to display the rectangular floor plane <see href="https://docs.unity3d.com/ScriptReference/GameObject.html">GameObject</see>.
/// </summary>
publicVector2FloorScale=>floorScale;
#endregionFloorsettings
#regionPlayareasettings
[SerializeField]
[Tooltip("Should the play area be displayed in the scene?")]
privateboolshowPlayArea=true;
/// <summary>
/// Should the boundary system display the play area?
/// </summary>
publicboolShowPlayArea=>showPlayArea;
[SerializeField]
[Tooltip("The material to use when displaying the play area.")]
privateMaterialplayAreaMaterial=null;
/// <summary>
/// The material to use for the rectangular play area <see href="https://docs.unity3d.com/ScriptReference/GameObject.html">GameObject</see>.
/// </summary>
publicMaterialPlayAreaMaterial=>playAreaMaterial;
[PhysicsLayer]
[SerializeField]
[Tooltip("The physics layer to assign to the generated play area.")]
privateintplayAreaPhysicsLayer=2;
/// <summary>
/// The physics layer to assign to the generated play area.