- feature
- sample
- change
- sample
- fix
- sample
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.Runtime.InteropServices; | |
namespace iOSNative | |
{ | |
/// <summary> | |
/// `UITraitCollection`のBridge | |
/// </summary> | |
/// <remarks> | |
/// - https://developer.apple.com/documentation/uikit/uitraitcollection | |
/// </remarks> |
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
// refered to: | |
// - https://takachan.hatenablog.com/entry/2018/03/10/020555 | |
using System; | |
namespace Utility | |
{ | |
internal static class EndianConverter | |
{ | |
public static char Reverse(char value) => (char)Reverse((ushort)value); |
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 UNITY_EDITOR_WIN | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using UnityEditor; | |
namespace MonafuwaUtility | |
{ | |
static class MonafuwaSweetRoomEditor | |
{ |
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
// referred to: | |
// http://baba-s.hatenablog.com/entry/2019/05/22/084000 | |
// https://forum.unity.com/threads/editorapplication-iscompiling-is-always-false.770126/ | |
using UnityEngine; | |
using UnityEditor; | |
#if UNITY_2019_1_OR_NEWER | |
using UnityEditor.Compilation; | |
#endif |
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 UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Linq; | |
namespace EditorUtility | |
{ | |
static class ExportProjectSettings | |
{ |
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 UNITY_IOS | |
using System.IO; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
namespace Samples | |
{ | |
static class CcacheSettings | |
{ |
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
import SwiftUI | |
struct ContentView: View { | |
// Font | |
let fontSize: CGFloat = 90 | |
// Animation | |
let startScale: CGFloat = 0.3 | |
let endScale: CGFloat = 1.0 |
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.Runtime.InteropServices; | |
namespace iOSNative | |
{ | |
/// <summary> | |
/// `ProcessInfo`のBridge | |
/// </summary> | |
/// <remarks> | |
/// - https://developer.apple.com/documentation/foundation/processinfo | |
/// </remarks> |
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
#import <AVFoundation/AVFoundation.h> | |
@interface EnableBackgroundAudioWrapper : NSObject | |
+ (void)enableBackgroundAudio; | |
@end | |
@implementation EnableBackgroundAudioWrapper | |
+ (void)enableBackgroundAudio { | |
AVAudioSession* audioSession = [AVAudioSession sharedInstance]; |