- 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
#import <Metal/Metal.h> | |
#import <UnityFramework/UnityFramework-Swift.h> | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
// P/Invoke code. | |
// [DllImport("__Internal", EntryPoint = "encodeToPNG2")] | |
// static extern string EncodeToPNG(IntPtr nativeTexturePtr, string fileName); |
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; | |
using UnityEngine; | |
namespace iOSNative | |
{ | |
/// <summary> | |
/// `UIScreen`のBridge | |
/// </summary> | |
/// <remarks> | |
/// - https://developer.apple.com/documentation/uikit/uiscreen |
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> | |
/// `AVAudioSession`のBridge | |
/// </summary> | |
/// <remarks> | |
/// - https://developer.apple.com/documentation/avfaudio/avaudiosession | |
/// </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 Foundation | |
import XcodeKit | |
// このGistでは実装のコア部分である`SourceEditorCommand.swift`のみアップ (実装は適当) | |
// Xcode Source Editor Extensionsの導入に関しては以下を参照 | |
// | |
// - Creating a Source Editor Extension | |
// https://developer.apple.com/documentation/xcodekit/creating_a_source_editor_extension | |
// | |
// - Xcode Source Editor Extension を使った Xcode プラグインの作り方 |
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]; |
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 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
#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
using System; | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Linq; | |
namespace EditorUtility | |
{ | |
static class ExportProjectSettings | |
{ |
NewerOlder