This file contains 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.EventSystems; | |
namespace BIM2GO.Systems.App.UX | |
{ | |
[RequireComponent(typeof(Camera))] | |
public class OrbitCameraController : MonoBehaviour | |
{ | |
public Transform FocusTarget { get; private set; } | |
public bool UserInputEnabled { get; set; } = true; |
This file contains 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 .gitignore file should be placed at the root of your Unity project directory | |
# | |
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore | |
# | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/[Ll]ogs/ |
This file contains 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.XR.Interaction.Toolkit; | |
using UnityEngine.XR.Interaction.Toolkit.AR; | |
[RequireComponent(typeof(ARSelectionInteractable))] | |
public class ARGrabInteractable : ARBaseGestureInteractable | |
{ | |
private const float PositionSpeed = 12f; | |
private const float DiffThreshold = 0.0001f; |
This file contains 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.Events; | |
public class LifecycleEventsTrigger : MonoBehaviour | |
{ | |
[SerializeField] | |
private UnityEvent onAwake; | |
[SerializeField] | |
private UnityEvent onStart; | |
[SerializeField] |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Get Google Maps</title> | |
<meta name="description" content="Get Google Maps on your smartphone."> | |
</head> | |
<body> | |
<script> | |
var googlePlayStoreLink = "https://play.google.com/store/apps/details?id=com.google.android.apps.maps&hl=de&gl=US"; |
This file contains 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
public static class DevDebug | |
{ | |
[Conditional("UNITY_EDITOR")] | |
[Conditional("DEBUG")] | |
public static void Log(string message, UnityEngine.Object context = null) | |
{ | |
if (context != null) | |
{ | |
Debug.Log(message, context); | |
} |
This file contains 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.EventSystems; | |
using UnityEngine.UI; | |
using System.Collections; | |
[AddComponentMenu("Helpers/UI/Self Auto Selected")] | |
[RequireComponent(typeof(Selectable))] | |
public class UIAutoSelectSelf : MonoBehaviour | |
{ | |
public bool AutoSelectOnEnable = true; |
This file contains 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 NextGenSprites.Helpers; | |
using System.Collections.Generic; | |
namespace NextGenSprites.Animation | |
{ | |
[RequireComponent (typeof(SpriteRenderer))] | |
public class SpriteAnimationHandler : MonoBehaviour | |
{ | |
public bool SharedMaterial; |
This file contains 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; | |
[System.Serializable] | |
public class MaterialPropertieBlockContainer : ScriptableObject | |
{ | |
public MaterialPropertyBlock Block; | |
} |
This file contains 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 NextGenSprites; | |
using UnityEditor; | |
using System.Collections; | |
public class CreateMaterialPropertyBlock : MonoBehaviour | |
{ | |
[MenuItem("Assets/Create/Material Property Block")] | |
public static void GenerateMaterialPropertyBlock() | |
{ |