Skip to content

Instantly share code, notes, and snippets.

Avatar

baba_s baba-s

View GitHub Profile
View Example.cs
#if UNITY_IOS
using System.Collections;
using Unity.Advertisement.IosSupport;
using UnityEngine;
using UnityEngine.iOS;
public sealed class Example : MonoBehaviour
{
private IEnumerator Start()
View ATTPostProcessBuild.cs
#if UNITY_IOS
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
public static class ATTPostProcessBuild
{
[PostProcessBuild]
private static void OnPostProcessBuild
View Example.cs
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
public static class Example
{
private const int WIDTH = 16;
private const int START_OFFSET_X = -22;
private const int OFFSET_X = -14;
View Example.cs
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
internal static class Example
{
private static readonly Color COLOR = new Color32( 40, 40, 40, 255 );
static Example()
{
View Example.cs
using Kogane;
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
internal static class Example
{
private const float SIZE = 20;
private const string NAME = "d_console.warnicon";
View Example.cs
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
internal static class Example
{
private const float SIZE = 20;
private const string NAME = "d_console.warnicon";
private static GUIContent m_icon;
View AddressablesDownloader.cs
using System.Linq;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;
using UnityEngine.ResourceManagement.ResourceLocations;
using UnityEngine.ResourceManagement.ResourceProviders;
public sealed class AddressablesDownloader
{
View aad_install.bat
SET BUNDLETOOL=C:\bundletool-all-1.2.0.jar
SET AAB_PATH=%1
SET APKS_PATH=%~p1%~n1.apks
REM 同名の .apks が存在するとエラーが発生するので削除しておく
del %APKS_PATH%
REM .aab から .apks を生成
java -Xmx1G -jar ^
%BUNDLETOOL% ^
View CharacterData.cs
using Sirenix.OdinInspector;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu]
public class CharacterData : SerializedScriptableObject
{
[SerializeField] private Dictionary<int, JobType> m_table = default;
}
View JsonUnityEngineCaching.cs
using JetBrains.Annotations;
using System;
using UnityEngine;
namespace Kogane
{
public static class JsonUnityEngineCaching
{
[Serializable]
private struct JsonData