Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hiroki-o
hiroki-o / VrmRuntimeLoader.cs
Created April 15, 2020 02:21
FileOpenDialog Loader script (WebGL supported)
using System;
using System.Collections;
using System.Runtime.InteropServices;
using SFB;
using UnityEngine;
using VRM;
//
// Get SFB from https://github.com/gkngkc/UnityStandaloneFileBrowser
@hiroki-o
hiroki-o / Test.json
Created August 30, 2018 09:03
Texture variant config with texture scaler sample
{
"MonoBehaviour": {
"m_Enabled": true,
"m_EditorHideFlags": 0,
"m_Name": "Test",
"m_EditorClassIdentifier": "",
"m_allNodes": [
{
"m_name": "Group By Enemy Dir",
"m_id": "64302069-bf4b-4454-b6f2-1b93b8aa4bc5",
@hiroki-o
hiroki-o / AttachSpringBone.cs
Created December 15, 2017 10:47
UnityChan Dynamic Setup
using UnityEngine;
using UnityEditor;
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using UnityEngine.AssetGraph;
using UnityChan;
@hiroki-o
hiroki-o / AddressableAssetSettingEditor.cs
Created May 2, 2017 06:31
Addressable Asset Settings Editor Tool (for debug)
using System.Collections.Generic;
using UnityEditorInternal;
using UnityEngine;
using UnityEditor.Hardware;
using UnityEditor.VersionControl;
#if ENABLE_CLOUD_SERVICES_COLLAB
using UnityEditor.Collaboration;
using UnityEditor.Web;
#endif
@hiroki-o
hiroki-o / ExtractSharedAssets.cs
Last active February 25, 2017 09:39
[ABGT 1.2] Find shared dependencies between bundles and automatically create new shared asset bundles
using UnityEngine;
using UnityEditor;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using UnityEngine.AssetBundles.GraphTool;
@hiroki-o
hiroki-o / GroupingBySize.cs
Created February 24, 2017 22:45
[ABGT 1.2] Group assets by runtime memory size
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using UnityEngine;
using UnityEditor;
using V1=AssetBundleGraph;
using Model=UnityEngine.AssetBundles.GraphTool.DataModel.Version2;
@hiroki-o
hiroki-o / CheckUnwantedAssetsInDependency.cs
Created February 24, 2017 22:09
[ABGT 1.2] Check if unwanted dependencies are included into asset bundle
using UnityEngine;
using UnityEditor;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using UnityEngine.AssetBundles.GraphTool;
@hiroki-o
hiroki-o / FilterByTextureAlpha.cs
Created February 21, 2017 07:25
AssetBundleGraphTool custom filter class/Filter by texture's alpha channel info
using UnityEngine;
using UnityEditor;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Reflection;
using System.Text.RegularExpressions;
@hiroki-o
hiroki-o / LoadByAssetList.cs
Last active February 19, 2017 11:36
Custom Loader Node script that uses TextAsset as source of assets to load
using UnityEngine;
using UnityEditor;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using UnityEngine.AssetBundles.GraphTool;
@hiroki-o
hiroki-o / SetSpriteTag.cs
Created February 15, 2017 08:00
[AssetBundleGraphTool] Custom node sample code to set SpriteTag by Group
using UnityEngine;
using UnityEditor;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using UnityEngine.AssetBundles.GraphTool;