Skip to content

Instantly share code, notes, and snippets.

View wiverson's full-sized avatar

Will Iverson wiverson

View GitHub Profile
@wiverson
wiverson / Unity3DTest.cs
Created August 7, 2018 17:58
Example of Unity3D test and the command line to run it
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
/**
/Applications/Unity/Hub/Editor/2018.1.7f1/Unity.app/Contents/MacOS/Unity
-batchmode -nographics -runEditorTests -projectPath /Users/wiverson/Desktop/test-test/TestTest
@wiverson
wiverson / ResetTimeline.cs
Created January 21, 2020 17:02
Reset a Unity3d PlayableDirector / Timeline
using System;
using UnityEngine;
using UnityEngine.Playables;
public class ResetTimeline : MonoBehaviour
{
public PlayableDirector playableDirector;
private void Start()
{
@wiverson
wiverson / NotificationExample.java
Last active December 7, 2023 15:31
Starting point for implementing system native notifications with JavaFX.
package com.doublerobot;
import javafx.application.Platform;
import javafx.scene.control.Label;
import java.awt.*;
import java.awt.desktop.AppForegroundEvent;
import java.awt.desktop.AppForegroundListener;
import java.awt.event.ActionEvent;