This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /************************************************************************************ | |
| Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved. | |
| Your use of this SDK or tool is subject to the Oculus SDK License Agreement, available at | |
| https://developer.oculus.com/licenses/oculussdk/ | |
| Unless required by applicable law or agreed to in writing, the Utilities SDK distributed | |
| under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | |
| ANY KIND, either express or implied. See the License for the specific language governing | |
| permissions and limitations under the License. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Drawing a line with UITK https://forum.unity.com/threads/drawing-a-line-with-uitk.1193470/ | |
| public class LineDrawer : VisualElement | |
| { | |
| private Vector3 startPos, endPos; | |
| private float thickness; | |
| public LineDrawer(Vector3 pos1, Vector3 pos2, float width) | |
| { | |
| startPos = pos1; | |
| endPos = pos2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This is free and unencumbered software released into the public | |
| domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| // using Sirenix.OdinInspector; | |
| using UnityEngine; | |
| using UnityEngine.Serialization; | |
| namespace BotaLab | |
| { | |
| /** | |
| * @brief A Unity Component to control position and rotation with PID controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.IO; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class ScreenCaptureEditor : EditorWindow | |
| { | |
| private static string directory = "Screenshots/Capture/"; | |
| private static string latestScreenshotPath = ""; | |
| private bool initDone = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Unity ## | |
| *.cs diff=csharp text | |
| *.cginc text | |
| *.shader text | |
| *.mat merge=unityyamlmerge eol=lf | |
| *.anim merge=unityyamlmerge eol=lf | |
| *.unity merge=unityyamlmerge eol=lf | |
| *.prefab merge=unityyamlmerge eol=lf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class SelectorScr : MonoBehaviour | |
| { | |
| public Camera myCam; | |
| private RaycastHit hit; | |
| private Ray ray; | |
| public Text selectedGOName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.EventSystems; | |
| /* | |
| MAKE A 3D OBJECT DRAGGABLE | |
| Riccardo Stecca | |
| http://www.riccardostecca.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| namespace Entropedia | |
| { | |
| [RequireComponent(typeof(Light))] | |
| [ExecuteInEditMode] |