Skip to content

Instantly share code, notes, and snippets.

Avatar

baba_s baba-s

View GitHub Profile
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
View ActiveScriptCompilationDefinesWriter.cs
using System.IO;
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
namespace Kogane.Internal
{
internal sealed class ActiveScriptCompilationDefinesWriter :
IPreprocessBuildWithReport,
IPostprocessBuildWithReport
View JsonUnityEngineQualitySettings.cs
using JetBrains.Annotations;
using System;
using UnityEngine;
namespace Kogane
{
public static class JsonUnityEngineQualitySettings
{
[Serializable]
private struct JsonData
View JsonUnityEngineiOSDevice.cs
using JetBrains.Annotations;
using System;
using UnityEngine;
#if UNITY_IOS
using UnityEngine.iOS;
#endif
namespace Kogane
{
public static class JsonUnityEngineiOSDevice
View JsonUnityWebRequestAsyncOperation.cs
using JetBrains.Annotations;
using System;
using UnityEngine;
using UnityEngine.Networking;
namespace Kogane
{
[Serializable]
public struct JsonUnityWebRequestAsyncOperation
{
View GlobalApplicationEvent.cs
using System;
using UnityEngine;
namespace Kogane
{
[AddComponentMenu( "" )]
[DisallowMultipleComponent]
public sealed class GlobalApplicationEvent : MonoBehaviour
{
public static Action<bool> OnPause { get; set; }
View RenderFrameIntervalScope.cs
using System;
using UnityEngine.Rendering;
namespace Kogane
{
public sealed class RenderFrameIntervalScope : IDisposable
{
private readonly int m_oldRenderFrameInterval;
public RenderFrameIntervalScope( int renderFrameInterval )
View TargetFrameRateScope.cs
using System;
using UnityEngine;
namespace Kogane
{
public sealed class TargetFrameRateScope : IDisposable
{
private readonly int m_oldTargetFrameRate;
public TargetFrameRateScope( int targetFrameRate )
View AddressablesAssetGroupTemplateEqualityComparer.cs
using UnityEditor.AddressableAssets.Settings;
using UnityEditor.AddressableAssets.Settings.GroupSchemas;
using UnityEngine.ResourceManagement.Util;
public static class AddressablesAssetGroupTemplateEqualityComparer
{
public static bool IsEquals( AddressableAssetGroupTemplate template, AddressableAssetGroup group )
{
foreach ( var schemaObject in template.SchemaObjects )
{
You can’t perform that action at this time.