Skip to content

Instantly share code, notes, and snippets.

@schetle
schetle / background.js
Last active May 11, 2022 15:50
Basic Chrome Extension using V3, using Electron supported APIs
console.log("Hello, I'm a service worker");
chrome.runtime.onInstalled.addListener((evt) => {
console.log("Hello, I was just installed.");
});
chrome.runtime.onMessage.addListener((message, sender, reply) => {
console.log(`Hello, I'm a service worker and I just received a message.`);
reply("Hello sender, I received your message.");
});
@schetle
schetle / addressables_localPhysicsMode.patch
Last active September 21, 2021 17:56
localPhysicsMode support for Addressables.LoadSceneAsync (Unity Addressables 1.18.15)
diff --git ./Runtime/Addressables.cs ./Runtime/Addressables.cs
index 0ffdc89..18c49d1 100644
--- ./Runtime/Addressables.cs
+++ ./Runtime/Addressables.cs
@@ -1203,14 +1203,16 @@ namespace UnityEngine.AddressableAssets
/// </summary>
/// <param name="key">The key of the location of the scene to load.</param>
/// <param name="loadMode">Scene load mode.</param>
+ /// <param name="localPhysicsMode">Local physics mode.</param>
/// <param name="activateOnLoad">If false, the scene will load but not activate (for background loading). The SceneInstance returned has an Activate() method that can be called to do this at a later point.</param>
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
@schetle
schetle / keybase.md
Created September 20, 2019 01:41
keybase

Keybase proof

I hereby claim:

  • I am schetle on github.
  • I am schetle (https://keybase.io/schetle) on keybase.
  • I have a public key ASDsZI7VGu2LEusyf3My-7km7TuiIV3y864CXNO5U98GWAo

To claim this, I am signing this object:

@schetle
schetle / output.log
Created April 9, 2017 03:11
VS2017 build UE4.15.1 with UnrealJS
`2>F:\Projects\UnrealEngine\Engine\Plugins\UnrealJS\Source\V8\Private\Delegates.cpp(1): error : Expected Delegates.h to be first header included.
2>F:\Projects\UnrealEngine\Engine\Plugins\UnrealJS\Source\V8\Private\DirectoryWatcher.cpp(1): error : Expected DirectoryWatcher.h to be first header included.
2>F:\Projects\UnrealEngine\Engine\Plugins\UnrealJS\Source\V8\Private\JavascriptComponent.cpp(1): error : Expected JavascriptComponent.h to be first header included.
2>F:\Projects\UnrealEngine\Engine\Plugins\UnrealJS\Source\V8\Private\JavascriptContext_Private.cpp(1): error : Expected JavascriptContext_Private.h to be first header included.
2>F:\Projects\UnrealEngine\Engine\Plugins\UnrealJS\Source\V8\Private\JavascriptGlobalDelegates.cpp(1): error : Expected JavascriptGlobalDelegates.h to be first header included.
2>F:\Projects\UnrealEngine\Engine\Plugins\UnrealJS\Source\V8\Private\JavascriptIsolate_Private.cpp(1): error : Expected JavascriptIsolate_Private.h to be first header included.
2>F:\Projects\UnrealEng
### Keybase proof
I hereby claim:
* I am schetle on github.
* I am schetle (https://keybase.io/schetle) on keybase.
* I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( );
}
To claim this, I am signing this object: