This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net8.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
<ItemGroup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MySettingObject : ScriptableObject | |
{ | |
private const string SettingName = "MySetting"; | |
private const string DefaultSavePath = "Assets/MyFeature/MySetting.asset"; | |
public static MySettingObject GetOrCreate() | |
{ | |
if (!EditorBuildSettings.TryGetConfigObject<MySettingObject>(ConfigName, out var settings)) | |
{ | |
settings = AssetDatabase.LoadAssetAtPath<MySettingObject>(DefaultSavePath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
# -------------- | |
# settings | |
# -------------- | |
UNITY_HUB_CMD='/Applications/Unity Hub.app/Contents/MacOS/Unity Hub' | |
INSTALL_PATH='/Applications/Unity/Hub/Editor' | |
MODULES=( | |
android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ModelProcessor : AssetPostprocessor | |
{ | |
public void OnPostprocessMeshHierarchy(GameObject root) { | |
var importer = (ModelImporter) assetImporter; | |
var exposePaths = FindTransformPaths(root.transform, (path, name) => | |
{ | |
var includes = new[] {"Neck", "Head"}; | |
return includes.Any(name.Contains); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function vagrant | |
set config ".vagrant/ssh_config" | |
set cmd (which vagrant) | |
if [ $argv[1] = 'ssh' ] | |
pushd . > /dev/null | |
while not test -e Vagrantfile; and [ $PWD != '/' ] | |
cd .. | |
end | |
if [ $PWD = '/' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jenkins.instance.pluginManager.plugins.each { p -> | |
println "${p.shortName}:${p.version}" | |
} |