What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-19 07:01:24
unity gui style color button
#if UNITY_EDITOR [CustomEditor(typeof(MyClass))] public class MyClassEditor : Editor { public override void OnInspectorGUI() { DrawDefaultInspector(); var style = new GUIStyle(GUI.skin.button); style.normal.textColor = Color.red; MyC... Add solution -
Other 2021-11-18 19:39:18
https://stackoverflow.com/questions/27420014/how-to-filter-json-object
public class Test { public static void main(String[] args) throws Exception { Type type = new TypeToken<List<Student>>() {}.getType(); Gson gson = new GsonBuilder().registerTypeAdapter(type, new Student.StudentListDeseria... Add solution -
TypeScript 2021-11-18 06:11:22
object notation string javascript\
function getValueFromNotation(obj: Object,is: string|any[], value: any = undefined) { if (typeof is == 'string') return getValueFromNotation(obj,is.split('.'), value); else if (is.length==1 && value!==undefined) return obj... Add solution -
C# 2021-11-18 01:10:12
csharp first element of array
double[] values; private List<double[]> valueList = new List<double[]>(); void AddNewValues(double d1, double d2, double d3) { values[0] = d1; values[1] = d1; values[2] = d1; valueList.Add(values); } void GetAllFirstValues() { ... Add solution -
Javascript 2021-11-17 15:27:18
save object as file dev tools
function saveDataAsFile(data, filename = "browser-scrapped.json") { if (!data) { console.error('Console.save: No data'); return; } if (typeof data === "object") { data = JSON.stringify(data, undefined, 4); } var blob = ne... Add solution -
C# 2021-11-17 07:58:14
unity find all scriptable objects of a type
public static T[] GetAllInstances<T>() where T : ScriptableObject { string[] guids = AssetDatabase.FindAssets("t:"+ typeof(T).Name); //FindAssets uses tags check documentation for more info T[] a = new T[guids.Leng... Add solution