Skip to content

Instantly share code, notes, and snippets.

View rygo6's full-sized avatar

Ryan Goodrich rygo6

View GitHub Profile
@rygo6
rygo6 / gist:8b83554cc85d53b8b977
Last active April 3, 2023 09:57
Save Transparent Cropped Screenshot To File In Unity 5.
using UnityEngine;
using UnityEditor;
using System.Collections;
namespace EC
{
public class PreviewGenerator : MonoBehaviour
{
private void Start()
{
@rygo6
rygo6 / ThreadedGameLogicObject.cs
Last active October 16, 2016 23:13
ThreadedGameLogicObject
using UnityEngine;
using System.Collections;
using System.Threading;
public class ThreadedGameLogicObject : MonoBehaviour
{
private Thread thread;
private Transform thisTransform;
private Vector3 currentPos;
@rygo6
rygo6 / UnitTest.cs
Last active March 28, 2017 08:16
Default unit test script for Unity.
using UnityEngine;
using UnityEditor;
using NUnit.Framework;
public class NewEditorTest {
[Test]
public void EditorTest()
{
//Arrange
PYTHONPATH=$PWD PATH=$PATH:/home/ryan/Developer/build/Linux-x86_64/ python meshroom/ui
Plugins loaded: CameraCalibration, CameraConnection, CameraInit, CameraLocalization, CameraRigCalibration, CameraRigLocalization, ConvertAnimatedCamera, ConvertSfMFormat, DepthMap, DepthMapFilter, ExportAnimatedCamera, ExportMaya, ExportUndistortedImages, FeatureExtraction, FeatureMatching, ImageMatching, ImageMatchingMultiSfM, KeyframeSelection, MeshDecimate, MeshDenoising, MeshFiltering, MeshResampling, Meshing, PrepareDenseScene, Publish, SfMAlignment, SfMTransform, StructureFromMotion, Texturing
Plugins loaded: AppendFiles, AppendText, Ls
[2018-07-20 13:53:02,465][WARNING] == Error while loading the following plugins ==
* simpleFarmSubmitter: No module named simpleFarm
qt.network.ssl: QSslSocket: cannot resolve CRYPTO_num_locks
qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_id_callback
qt.network.ssl: QSslSocket: cannot resolve CRYPTO_set_locking_callback
qt.network.ssl: QSslSocket: cannot resolve ERR_free_s
ryan@ryan-ubuntu:~/Developer/AliceVisionAutoBuild/build$ make -j8
[ 1%] Performing update step for 'ilmbase'
[ 9%] Built target turbojpeg
[ 26%] Built target tiff
[ 26%] Built target png
[ 34%] Built target geogram
[ 42%] Built target eigen
[ 51%] Built target boost
[ 59%] Built target ceres
Current branch develop_compatibility_gxx4 is up to date.
@rygo6
rygo6 / Android Privacy Policy Template
Created June 23, 2019 21:48 — forked from alphamu/Android Privacy Policy Template
A template for creating your own privacy policy for Android apps. Look for "[" and "<!--" to see where you need to edit this app in order to create your own privacy olicy.
<html>
<body>
<h2>Privacy Policy</h2>
<p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended
for use as is.</p>
<p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and
disclosure of Personal Information if anyone decided to use [my|our] Service.</p>
<p>If you choose to use [my|our] Service, then you agree to the collection and use of information in
relation with this policy. The Personal Information that [I|we] collect are used for providing and
improving the Service. [I|We] will not use or share your information with anyone except as described
@rygo6
rygo6 / .gitattributes
Created April 10, 2021 03:23
.gitattributes for LFS with an Unity Project
*.cs diff=csharp text
*.cginc text
*.shader text
*.dat filter=lfs diff=lfs merge=lfs -text
*.DAT filter=lfs diff=lfs merge=lfs -text
*.a filter=lfs diff=lfs merge=lfs -text
*.A filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.MP3 filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
@rygo6
rygo6 / .gitignore
Created April 10, 2021 03:27
.gitignore for Unity project
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uild/
[Bb]uilds/
Assets/AssetStoreTools*
.DS_Store
.idea/
/Assets/Plugins/Editor/JetBrains/
/Assets/Plugins/Editor/JetBrains.meta
@rygo6
rygo6 / gist:c1e20c9ce879a5a5e0bde885a0f20230
Created November 26, 2021 10:07
Rust WasmTime Problem.
struct Atype
{
table: Table,
linker: Linker,
}
impl Atype
{
pub fn new() -> Self
{
@rygo6
rygo6 / ViveTrackerControllerProfile.cs
Created December 14, 2021 23:10
ViveTrackerControllerProfile for com.unity.xr.openxr Unity OpenXR Plugin
// this doesnt work
using System.Collections.Generic;
using Unity.XR.OpenVR;
using UnityEngine.InputSystem.Layouts;
using UnityEngine.InputSystem.XR;
#if UNITY_EDITOR
using UnityEditor;
#endif