This file contains hidden or 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
using System; | |
using System.Collections; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
namespace Hoge | |
{ | |
public class CoroutineRunner : MonoBehaviour | |
{ | |
private static MonoBehaviour instance; |
This file contains hidden or 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
git status -s | grep -E '.meta$' | tee diff.txt | |
if [ -s diff.txt ]; then | |
exit 1 | |
fi |
This file contains hidden or 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
using System; | |
using System.Threading.Tasks; | |
using AnimeTask; | |
using UnityEngine; | |
using Animator = AnimeTask.Animator; | |
public class Hoge : MonoBehaviour | |
{ | |
public async void Start() | |
{ |
This file contains hidden or 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
xcargs = "" | |
xcargs += " IDEBuildOperationMaxNumberOfConcurrentCompileTasks=16" | |
xcargs += " GCC_GENERATE_DEBUGGING_SYMBOLS=NO DEBUG_INFORMATION_FORMAT=dwarf" | |
xcargs += " ONLY_ACTIVE_ARCH=YES VALID_ARCHS=arm64" | |
xcargs += " CC=\"ccacheclang\" GCC_PRECOMPILE_PREFIX_HEADER=NO" if File.exist?("/usr/local/bin/ccacheclang") |
This file contains hidden or 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
if git commit -v --dry-run | grep 'no commit' > /dev/null 2>&1 | |
then | |
echo "Trying to commit non-committable code." | |
exit 1 | |
else | |
exit 0 | |
fi |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Baum2; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
namespace Baum2.Util | |
{ | |
public class ListView |
This file contains hidden or 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
// HorizontalLayoutGroupのめっちゃシンプルで挙動が分かりやすくてスクリプトからサクッと入れれる版。 | |
// SourceというGameObjectを、itemsの数だけ左から右に並べる。 | |
var source = ui.Get<RectTransform>("Source"); | |
var listView = new ListView(new LeftToRightLayouter(), source); | |
using (var editor = listView.Edit()) | |
{ | |
foreach(var item in items) | |
{ |
This file contains hidden or 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
struct User { | |
id int | |
} | |
fn show_user_id(user *User) { | |
println(user.id) | |
} | |
fn main() { | |
user := User{id: 10} |
This file contains hidden or 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
using System; | |
using System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
namespace AssetManager.Editor | |
{ | |
public static class AssetBuilder | |
{ | |
[MenuItem("Build/AssetBundles")] |