Skip to content

Instantly share code, notes, and snippets.

@su10
su10 / ParseBigJsonWithUtf8Json.cs
Last active June 6, 2018 15:01
Utf8Jsonでキーを網羅していないクラスで長いJSONをデシリアライズしようとするとNullReferenceExceptionになる例
using UniRx;
using UnityEditor;
using UnityEngine;
using Utf8Json;
public class ParseBigJsonWithUtf8Json : MonoBehaviour
{
public void ParseSmallJson()
{
ObservableWWW.Get("https://public.bitbank.cc/btc_jpy/transactions")
@su10
su10 / ReorderableListEditor.cs
Created October 20, 2020 12:04
Editor that draws all lists/arrays in Unity Inspector as re-orderable by default.
/*
MIT License
Copyright (c) 2018 ANURAG DEVANAPALLY
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE S
@su10
su10 / .editorconfig_A
Created August 17, 2022 12:51
.editorconfig file reflecting Rider's default settings (A: without default values, B: with default values)
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = false
insert_final_newline = false
indent_style = space
indent_size = 4
# Microsoft .NET properties