{"_id":"594949e72be16d0026ec0514","category":{"_id":"594949e62be16d0026ec04e1","version":"594949e52be16d0026ec04cd","project":"571fa55ca0acd42000af9545","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-02-25T10:45:46.612Z","from_sync":false,"order":19,"slug":"daydream-sdk","title":"Daydream SDK"},"project":"571fa55ca0acd42000af9545","user":"571fa519db52d01700f5cf3d","version":{"_id":"594949e52be16d0026ec04cd","project":"571fa55ca0acd42000af9545","__v":2,"createdAt":"2017-06-20T16:14:29.816Z","releaseDate":"2017-06-20T16:14:29.816Z","categories":["594949e62be16d0026ec04ce","594949e62be16d0026ec04cf","594949e62be16d0026ec04d0","594949e62be16d0026ec04d1","594949e62be16d0026ec04d2","594949e62be16d0026ec04d3","594949e62be16d0026ec04d4","594949e62be16d0026ec04d5","594949e62be16d0026ec04d6","594949e62be16d0026ec04d7","594949e62be16d0026ec04d8","594949e62be16d0026ec04d9","594949e62be16d0026ec04da","594949e62be16d0026ec04db","594949e62be16d0026ec04dc","594949e62be16d0026ec04dd","594949e62be16d0026ec04de","594949e62be16d0026ec04df","594949e62be16d0026ec04e0","594949e62be16d0026ec04e1","59497219f4a8980024dd0631"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Kunekune","version_clean":"3.2.0","version":"3.2.0"},"__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-02-25T10:47:08.870Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"## Overview\n\nThe Daydream Boundaries SDK script provides dummy functions for the play area boundaries.\n\n## Class Methods\n\n### InitBoundaries/0\n\n  > `public override void InitBoundaries()`\n\n  * Parameters\n   * _none_\n  * Returns\n   * _none_\n\nThe InitBoundaries method is run on start of scene and can be used to initialse anything on game start.\n\n### GetPlayArea/0\n\n  > `public override Transform GetPlayArea()`\n\n  * Parameters\n   * _none_\n  * Returns\n   * `Transform` - A transform of the object representing the play area in the scene.\n\nThe GetPlayArea method returns the Transform of the object that is used to represent the play area in the scene.\n\n### GetPlayAreaVertices/0\n\n  > `public override Vector3[] GetPlayAreaVertices()`\n\n  * Parameters\n   * _none_\n  * Returns\n   * `Vector3[]` - A Vector3 array of the points in the scene that represent the play area boundaries.\n\nThe GetPlayAreaVertices method returns the points of the play area boundaries.\n\n### GetPlayAreaBorderThickness/0\n\n  > `public override float GetPlayAreaBorderThickness()`\n\n  * Parameters\n   * _none_\n  * Returns\n   * `float` - The thickness of the drawn border.\n\nThe GetPlayAreaBorderThickness returns the thickness of the drawn border for the given play area.\n\n### IsPlayAreaSizeCalibrated/0\n\n  > `public override bool IsPlayAreaSizeCalibrated()`\n\n  * Parameters\n   * _none_\n  * Returns\n   * `bool` - Returns true if the play area size has been auto calibrated and set by external sensors.\n\nThe IsPlayAreaSizeCalibrated method returns whether the given play area size has been auto calibrated by external sensors.\n\n### GetDrawAtRuntime/0\n\n  > `public override bool GetDrawAtRuntime()`\n\n  * Parameters\n   * _none_\n  * Returns\n   * `bool` - Returns true if the drawn border is being displayed.\n\nThe GetDrawAtRuntime method returns whether the given play area drawn border is being displayed.\n\n### SetDrawAtRuntime/1\n\n  > `public override void SetDrawAtRuntime(bool value)`\n\n  * Parameters\n   * `bool value` - The state of whether the drawn border should be displayed or not.\n  * Returns\n   * _none_\n\nThe SetDrawAtRuntime method sets whether the given play area drawn border should be displayed at runtime.","excerpt":"","slug":"sdk_daydreamboundaries","type":"basic","title":"SDK_DaydreamBoundaries"}

SDK_DaydreamBoundaries


## Overview The Daydream Boundaries SDK script provides dummy functions for the play area boundaries. ## Class Methods ### InitBoundaries/0 > `public override void InitBoundaries()` * Parameters * _none_ * Returns * _none_ The InitBoundaries method is run on start of scene and can be used to initialse anything on game start. ### GetPlayArea/0 > `public override Transform GetPlayArea()` * Parameters * _none_ * Returns * `Transform` - A transform of the object representing the play area in the scene. The GetPlayArea method returns the Transform of the object that is used to represent the play area in the scene. ### GetPlayAreaVertices/0 > `public override Vector3[] GetPlayAreaVertices()` * Parameters * _none_ * Returns * `Vector3[]` - A Vector3 array of the points in the scene that represent the play area boundaries. The GetPlayAreaVertices method returns the points of the play area boundaries. ### GetPlayAreaBorderThickness/0 > `public override float GetPlayAreaBorderThickness()` * Parameters * _none_ * Returns * `float` - The thickness of the drawn border. The GetPlayAreaBorderThickness returns the thickness of the drawn border for the given play area. ### IsPlayAreaSizeCalibrated/0 > `public override bool IsPlayAreaSizeCalibrated()` * Parameters * _none_ * Returns * `bool` - Returns true if the play area size has been auto calibrated and set by external sensors. The IsPlayAreaSizeCalibrated method returns whether the given play area size has been auto calibrated by external sensors. ### GetDrawAtRuntime/0 > `public override bool GetDrawAtRuntime()` * Parameters * _none_ * Returns * `bool` - Returns true if the drawn border is being displayed. The GetDrawAtRuntime method returns whether the given play area drawn border is being displayed. ### SetDrawAtRuntime/1 > `public override void SetDrawAtRuntime(bool value)` * Parameters * `bool value` - The state of whether the drawn border should be displayed or not. * Returns * _none_ The SetDrawAtRuntime method sets whether the given play area drawn border should be displayed at runtime.