Skip to content

Instantly share code, notes, and snippets.

// Made with Amplify Shader Editor v1.9.7.1
// Available at the Unity Asset Store - http://u3d.as/y3X
Shader "StencilLensShader"
{
Properties
{
[HideInInspector] __dirty( "", Int ) = 1
}
SubShader
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.ARSubsystems;
public class PlaceObjectBehaviour : MonoBehaviour
{
public ARRaycastManager MyRaycastManager;
@Pipe38
Pipe38 / ExampleTurnBasedGameWithCouroutine.cs
Created October 18, 2024 15:55
ExampleTurnBasedGameWithCouroutine for NABA
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ExampleTurnBasedGameWithCouroutine : MonoBehaviour
{
public int CurrentTurn;
// Start is called before the first frame update
void Start()
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
// Sample Code for NABA Students
public class UIEntryBehaviour : MonoBehaviour
{
public TMP_Text UsernameField;
public TMP_Text UsernameScore;
@Pipe38
Pipe38 / TestLeaderboardBehaviour.cs
Last active October 10, 2024 17:30
Intro Leaderboard 1
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
// Sample Code for NABA Students
//http://dreamlo.com/lb/W9UHi5W6YUCzvxkTrYHwDQzX_YGs1Jv0qBWEXLMEd3zw
public class TestLeaderboardBehaviour : MonoBehaviour
{
public string UserName;
@Pipe38
Pipe38 / TestCoroutine2.cs
Last active October 10, 2024 17:31
intro coroutine
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Sample Code for NABA Students
public class TestCoroutine2 : MonoBehaviour
{
public int MyScore;
// Start is called before the first frame update
/**
*
* Position/angle motion control example
* Steps:
* 1) Configure the motor and magnetic sensor
* 2) Run the code
* 3) Set the target angle (in radians) from serial terminal
*
*/
#include <SimpleFOC.h>
@Pipe38
Pipe38 / .gitattributes
Last active June 1, 2022 18:38
A tested GitAttributes for Unity
# A Tested .gitattributes for Unity Engine by Pipe
# Macro for Unity YAML-based asset files.
[attr]unityyaml -text merge=unityyamlmerge diff
# Macro for all binary files that should use Git LFS.
[attr]lfs -text filter=lfs diff=lfs merge=lfs
# Default to auto-normalized line endings.
* text=auto