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
// -----JS CODE----- | |
// PLANE TRACKER | |
// For Lens Studio on Next Generation Spectacles | |
// - Gets plane tracking data | |
// - Determines if a tracked plane is valid or not, based on settings | |
// - If valid, sets position, normal, and calculated rotation | |
// Ted Brown / November 30, 2021 | |
// @input SceneObject cameraObject | |
// @input string floor = "head" {"widget":"combobox", "values":[{"label":"Disabled", "value":"disabled"}, {"label":"Default Rotation", "value":"default"}, {"label":"Head Rotation", "value":"head"}]} |
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
List of design/api/usability thoughs generated while working with Unity- will be extended over time. Unity peeps | |
asked for some priorities, which are labeled (#1-5, 1 being highest) but are somewhat arbitrary (since these range | |
from massive refactors to simple fixes). Now adding with dates, so it's easy to see what's new.. | |
3/28/2017 | |
Asset publisher gripes: | |
- No way to enforce "one seat per user" license - companies with multiple employee's using my software only ever pay | |
once, when it's supposed to be one copy per user. | |
- Piracy of assets is rampant | |
- No subscription business model. You're moving to subscription, why can't we? |
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 System.Collections; | |
public class NaturalOrientation : MonoBehaviour { | |
public static int ORIENTATION_UNDEFINED = 0x00000000; | |
public static int ORIENTATION_PORTRAIT = 0x00000001; | |
public static int ORIENTATION_LANDSCAPE = 0x00000002; | |
public static int ROTATION_0 = 0x00000000; |
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
syntax: glob | |
.DS_Store | |
*.sln | |
*.userprefs | |
*.csproj | |
*.pidb | |
*.unitypackage | |
syntax: regexp | |
^Build/.* |
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 (c) 2013 Calvin Rien | |
* | |
* Based on the JSON parser by Patrick van Bergen | |
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html | |
* | |
* Simplified it so that it doesn't throw exceptions | |
* and can be used in Unity iPhone with maximum code stripping. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining |