mirror of
https://github.com/storytold/Azure-Kinect-Sample-for-Unity.git
synced 2026-10-13 23:53:23 +00:00
sample
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
|
||||
[1.0.1]
|
||||
|
||||
Adding Readme file
|
||||
Adding local plugin importer callbacks.
|
||||
Removing Bintray references in package.json
|
||||
|
||||
[2.0.3]
|
||||
|
||||
Fix bug where importing the asset store ads package would cause duiplicate symbols,
|
||||
and removing the asset store ads package would cause missing symbols.
|
||||
|
||||
[2.0.4]
|
||||
|
||||
Added new description string to package.json
|
||||
Fixed art assets to use no compression (fixes issue switching between iOS and PC builds)
|
||||
|
||||
[2.0.5] - 2018-03-29
|
||||
|
||||
Fix for https://fogbugz.unity3d.com/f/cases/1011363
|
||||
Fixes an incorrect guid that the importer used to include/exclude the runtime assembly from the build.
|
||||
|
||||
[2.0.6] - 2018-03-29
|
||||
|
||||
Update changelog for this and 2.0.5
|
||||
|
||||
[2.0.7] - 2018-04-06
|
||||
|
||||
Fix editor assembly project file to include the importer script.
|
||||
|
||||
[2.0.8] - 2018-05-01
|
||||
|
||||
Add call to SetShouldOverridePredicate to exclude package dll when asset store dlls are present.
|
||||
Update unity version attribute to support 2017.4 LTS
|
||||
|
||||
Fix an issue with the editor assembly to add back in some iOS platform specific code that was removed
|
||||
via conditionals (which is fine for source packages, but doesn't work with precompiled assemblies)
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 35b4e72ca46f44581b85082c4dc21d13
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a37e18887fa954edf92bc36bc353b879
|
||||
folderAsset: yes
|
||||
timeCreated: 1491945644
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7c3a5d6e39b874f468b2691537168513
|
||||
folderAsset: yes
|
||||
timeCreated: 1491258568
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 48986928cc2a449dbaecdd1654bc9bf6
|
||||
folderAsset: yes
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f28fcced5af094cf78eb4e1109a71981
|
||||
folderAsset: yes
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Binary file not shown.
+21
@@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b32abd1c9d73a4cce8389f084ac12b11
|
||||
timeCreated: 1491258710
|
||||
licenseType: Pro
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
Editor:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
data:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 99ddb49592ff84811804420a1910cb89
|
||||
folderAsset: yes
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 121 KiB |
@@ -0,0 +1,105 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10bf81265ad87424d946598c575f45a0
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 5
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -1
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 116 KiB |
@@ -0,0 +1,105 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1b32bcce201b4494ea8848326290c5d5
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 5
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -1
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4f234578336894dc081edf696f2ff5f2
|
||||
folderAsset: yes
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2d4d46c70fdd242668a56e99799e8540
|
||||
folderAsset: yes
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eeed6954b3c264ca0b28a92aa6289bf0
|
||||
folderAsset: yes
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
Editor:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
data:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6e7c8cfeedae74eb3a562055e069e441
|
||||
folderAsset: yes
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
#import "UADSMetaData.h"
|
||||
|
||||
@interface UADSInAppPurchaseMetaData : UADSMetaData
|
||||
|
||||
- (void)setProductId:(NSString *)productId;
|
||||
- (void)setPrice:(NSNumber *)price;
|
||||
- (void)setCurrency:(NSString *)currency;
|
||||
- (void)setReceiptPurchaseData:(NSString *)receiptPurchaseData;
|
||||
- (void)setSignature:(NSString *)signature;
|
||||
|
||||
@end
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7927683d1fc5848b5abfb54ebb1028ec
|
||||
timeCreated: 1493316657
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
@interface UADSJsonStorage : NSObject
|
||||
|
||||
@property (nonatomic, strong) NSMutableDictionary *storageContents;
|
||||
|
||||
- (BOOL)set:(NSString *)key value:(id)value;
|
||||
- (id)getValueForKey:(NSString *)key;
|
||||
- (BOOL)deleteKey:(NSString *)key;
|
||||
- (NSArray *)getKeys:(NSString *)key recursive:(BOOL)recursive;
|
||||
- (void)clearData;
|
||||
- (BOOL)initData;
|
||||
- (BOOL)hasData;
|
||||
|
||||
@end
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1322fd896bbb15bb6e335591b766ae62
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
#import "UADSMetaData.h"
|
||||
|
||||
@interface UADSMediationMetaData : UADSMetaData
|
||||
|
||||
- (void)setName:(NSString *)mediationNetworkName;
|
||||
- (void)setVersion:(NSString *)mediationSdkVersion;
|
||||
- (void)setOrdinal:(int)mediationOrdinal;
|
||||
|
||||
@end
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b52e557db2c2b4eebb10444f1d582029
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
@interface UADSMetaData : NSObject
|
||||
|
||||
@property (nonatomic, strong) NSString *category;
|
||||
@property (nonatomic, strong) NSMutableDictionary *entries;
|
||||
|
||||
- (instancetype)initWithCategory:(NSString *)category;
|
||||
- (void)set:(NSString *)key value:(id)value;
|
||||
- (void)commit;
|
||||
|
||||
@end
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 86c008322e7c647149878156c5b81940
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
#import "UADSMetaData.h"
|
||||
|
||||
@interface UADSPlayerMetaData : UADSMetaData
|
||||
|
||||
- (void)setServerId:(NSString *)serverId;
|
||||
|
||||
@end
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 453f100e6bdae4dfd9e655927819dc85
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+255
@@ -0,0 +1,255 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import <UnityAds/UADSMediationMetaData.h>
|
||||
#import <UnityAds/UADSPlayerMetaData.h>
|
||||
|
||||
/**
|
||||
* An enumerate that describes the state of `UnityAds` placements.
|
||||
* @note All placement states, other than `kUnityAdsPlacementStateReady`, indicate that the placement is not currently ready to show ads.
|
||||
*/
|
||||
typedef NS_ENUM(NSInteger, UnityAdsPlacementState) {
|
||||
/**
|
||||
* A state that indicates that the placement is ready to show an ad. The `show:` selector can be called.
|
||||
*/
|
||||
kUnityAdsPlacementStateReady,
|
||||
/**
|
||||
* A state that indicates that no state is information is available.
|
||||
* @warning This state can that UnityAds is not initialized or that the placement is not correctly configured in the Unity Ads admin tool.
|
||||
*/
|
||||
kUnityAdsPlacementStateNotAvailable,
|
||||
/**
|
||||
* A state that indicates that the placement is currently disabled. The placement can be enabled in the Unity Ads admin tools.
|
||||
*/
|
||||
kUnityAdsPlacementStateDisabled,
|
||||
/**
|
||||
* A state that indicates that the placement is not currently ready, but will be in the future.
|
||||
* @note This state most likely indicates that the ad content is currently caching.
|
||||
*/
|
||||
kUnityAdsPlacementStateWaiting,
|
||||
/**
|
||||
* A state that indicates that the placement is properly configured, but there are currently no ads available for the placement.
|
||||
*/
|
||||
kUnityAdsPlacementStateNoFill
|
||||
};
|
||||
|
||||
/**
|
||||
* An enumeration for the completion state of an ad.
|
||||
*/
|
||||
typedef NS_ENUM(NSInteger, UnityAdsFinishState) {
|
||||
/**
|
||||
* A state that indicates that the ad did not successfully display.
|
||||
*/
|
||||
kUnityAdsFinishStateError,
|
||||
/**
|
||||
* A state that indicates that the user skipped the ad.
|
||||
*/
|
||||
kUnityAdsFinishStateSkipped,
|
||||
/**
|
||||
* A state that indicates that the ad was played entirely.
|
||||
*/
|
||||
kUnityAdsFinishStateCompleted
|
||||
};
|
||||
|
||||
/**
|
||||
* An enumeration for the various errors that can be emitted through the `UnityAdsDelegate` `unityAdsDidError:withMessage:` method.
|
||||
*/
|
||||
typedef NS_ENUM(NSInteger, UnityAdsError) {
|
||||
/**
|
||||
* An error that indicates failure due to `UnityAds` currently being uninitialized.
|
||||
*/
|
||||
kUnityAdsErrorNotInitialized = 0,
|
||||
/**
|
||||
* An error that indicates failure due to a failure in the initialization process.
|
||||
*/
|
||||
kUnityAdsErrorInitializedFailed,
|
||||
/**
|
||||
* An error that indicates failure due to attempting to initialize `UnityAds` with invalid parameters.
|
||||
*/
|
||||
kUnityAdsErrorInvalidArgument,
|
||||
/**
|
||||
* An error that indicates failure of the video player.
|
||||
*/
|
||||
kUnityAdsErrorVideoPlayerError,
|
||||
/**
|
||||
* An error that indicates failure due to having attempted to initialize the `UnityAds` class in an invalid environment.
|
||||
*/
|
||||
kUnityAdsErrorInitSanityCheckFail,
|
||||
/**
|
||||
* An error that indicates failure due to the presence of an ad blocker.
|
||||
*/
|
||||
kUnityAdsErrorAdBlockerDetected,
|
||||
/**
|
||||
* An error that indicates failure due to inability to read or write a file.
|
||||
*/
|
||||
kUnityAdsErrorFileIoError,
|
||||
/**
|
||||
* An error that indicates failure due to a bad device identifier.
|
||||
*/
|
||||
kUnityAdsErrorDeviceIdError,
|
||||
/**
|
||||
* An error that indicates a failure when attempting to show an ad.
|
||||
*/
|
||||
kUnityAdsErrorShowError,
|
||||
/**
|
||||
* An error that indicates an internal failure in `UnityAds`.
|
||||
*/
|
||||
kUnityAdsErrorInternalError,
|
||||
};
|
||||
|
||||
/**
|
||||
* The `UnityAdsDelegate` protocol defines the required methods for receiving messages from UnityAds.
|
||||
* Must be implemented by the hosting app.
|
||||
* The unityAdsReady: method is called when it's possible to show an ad.
|
||||
* All other methods are used to provide notifications of events of the ad lifecycle.
|
||||
* @note On initialization, there are ready (or error) callbacks for each placement attached to the game identifier.
|
||||
*/
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@protocol UnityAdsDelegate <NSObject>
|
||||
/**
|
||||
* Called when `UnityAds` is ready to show an ad. After this callback you can call the `UnityAds` `show:` method for this placement.
|
||||
* Note that sometimes placement might no longer be ready due to exceptional reasons. These situations will give no new callbacks.
|
||||
*
|
||||
* @warning To avoid error situations, it is always best to check `isReady` method status before calling show.
|
||||
* @param placementId The ID of the placement that is ready to show, as defined in Unity Ads admin tools.
|
||||
*/
|
||||
- (void)unityAdsReady:(NSString *)placementId;
|
||||
/**
|
||||
* Called when `UnityAds` encounters an error. All errors will be logged but this method can be used as an additional debugging aid. This callback can also be used for collecting statistics from different error scenarios.
|
||||
*
|
||||
* @param error A `UnityAdsError` error enum value indicating the type of error encountered.
|
||||
* @param message A human readable string indicating the type of error encountered.
|
||||
*/
|
||||
- (void)unityAdsDidError:(UnityAdsError)error withMessage:(NSString *)message;
|
||||
/**
|
||||
* Called on a successful start of advertisement after calling the `UnityAds` `show:` method.
|
||||
*
|
||||
* @warning If there are errors in starting the advertisement, this method may never be called. Unity Ads will directly call `unityAdsDidFinish:withFinishState:` with error status.
|
||||
*
|
||||
* @param placementId The ID of the placement that has started, as defined in Unity Ads admin tools.
|
||||
*/
|
||||
- (void)unityAdsDidStart:(NSString *)placementId;
|
||||
/**
|
||||
* Called after the ad has closed.
|
||||
*
|
||||
* @param placementId The ID of the placement that has finished, as defined in Unity Ads admin tools.
|
||||
* @param state An enum value indicating the finish state of the ad. Possible values are `Completed`, `Skipped`, and `Error`.
|
||||
*/
|
||||
- (void)unityAdsDidFinish:(NSString *)placementId
|
||||
withFinishState:(UnityAdsFinishState)state;
|
||||
@end
|
||||
|
||||
/**
|
||||
* `UnityAds` is a static class with methods for preparing and showing ads.
|
||||
*
|
||||
* @warning In order to ensure expected behaviour, the delegate must always be set.
|
||||
*/
|
||||
|
||||
@interface UnityAds : NSObject
|
||||
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
+ (instancetype)initialize NS_UNAVAILABLE;
|
||||
|
||||
/**
|
||||
* Initializes UnityAds. UnityAds should be initialized when app starts.
|
||||
*
|
||||
* @param gameId Unique identifier for a game, given by Unity Ads admin tools or Unity editor.
|
||||
* @param delegate delegate for UnityAdsDelegate callbacks
|
||||
*/
|
||||
+ (void)initialize:(NSString *)gameId
|
||||
delegate:(nullable id<UnityAdsDelegate>)delegate;
|
||||
/**
|
||||
* Initializes UnityAds. UnityAds should be initialized when app starts.
|
||||
*
|
||||
* @param gameId Unique identifier for a game, given by Unity Ads admin tools or Unity editor.
|
||||
* @param delegate delegate for UnityAdsDelegate callbacks
|
||||
* @param testMode Set this flag to `YES` to indicate test mode and show only test ads.
|
||||
*/
|
||||
+ (void)initialize:(NSString *)gameId
|
||||
delegate:(nullable id<UnityAdsDelegate>)delegate
|
||||
testMode:(BOOL)testMode;
|
||||
/**
|
||||
* Show an ad using the defaul placement.
|
||||
*
|
||||
* @param viewController The `UIViewController` that is to present the ad view controller.
|
||||
*/
|
||||
+ (void)show:(UIViewController *)viewController;
|
||||
/**
|
||||
* Show an ad using the provided placement ID.
|
||||
*
|
||||
* @param viewController The `UIViewController` that is to present the ad view controller.
|
||||
* @param placementId The placement ID, as defined in Unity Ads admin tools.
|
||||
*/
|
||||
+ (void)show:(UIViewController *)viewController placementId:(NSString *)placementId;
|
||||
/**
|
||||
* Provides the currently assigned `UnityAdsDelegate`.
|
||||
*
|
||||
* @return The current `UnityAdsDelegate`.
|
||||
*/
|
||||
+ (id<UnityAdsDelegate>)getDelegate;
|
||||
/**
|
||||
* Allows the delegate to be reassigned after UnityAds has already been initialized.
|
||||
*
|
||||
* @param delegate The new `UnityAdsDelegate' for UnityAds to send callbacks to.
|
||||
*/
|
||||
+ (void)setDelegate:(id<UnityAdsDelegate>)delegate;
|
||||
/**
|
||||
* Get the current debug status of `UnityAds`.
|
||||
*
|
||||
* @return If `YES`, `UnityAds` will provide verbose logs.
|
||||
*/
|
||||
+ (BOOL)getDebugMode;
|
||||
/**
|
||||
* Set the logging verbosity of `UnityAds`. Debug mode indicates verbose logging.
|
||||
* @warning Does not relate to test mode for ad content.
|
||||
* @param enableDebugMode `YES` for verbose logging.
|
||||
*/
|
||||
+ (void)setDebugMode:(BOOL)enableDebugMode;
|
||||
/**
|
||||
* Check to see if the current device supports using Unity Ads.
|
||||
*
|
||||
* @return If `NO`, the current device cannot initialize `UnityAds` or show ads.
|
||||
*/
|
||||
+ (BOOL)isSupported;
|
||||
/**
|
||||
* Check if the default placement is ready to show an ad.
|
||||
*
|
||||
* @return If `YES`, the default placement is ready to show an ad.
|
||||
*/
|
||||
+ (BOOL)isReady;
|
||||
/**
|
||||
* Check if a particular placement is ready to show an ad.
|
||||
*
|
||||
* @param placementId The placement ID being checked.
|
||||
*
|
||||
* @return If `YES`, the placement is ready to show an ad.
|
||||
*/
|
||||
+ (BOOL)isReady:(NSString *)placementId;
|
||||
/**
|
||||
* Check the current state of the default placement.
|
||||
*
|
||||
* @return If this is `kUnityAdsPlacementStateReady`, the placement is ready to show ads. Other states represent errors.
|
||||
*/
|
||||
+ (UnityAdsPlacementState)getPlacementState;
|
||||
/**
|
||||
* Check the current state of a placement.
|
||||
*
|
||||
* @param placementId The placement ID, as defined in Unity Ads admin tools.
|
||||
*
|
||||
* @return If this is `kUnityAdsPlacementStateReady`, the placement is ready to show ads. Other states represent errors.
|
||||
*/
|
||||
+ (UnityAdsPlacementState)getPlacementState:(NSString *)placementId;
|
||||
/**
|
||||
* Check the version of this `UnityAds` SDK
|
||||
*
|
||||
* @return String representing the current version name.
|
||||
*/
|
||||
+ (NSString *)getVersion;
|
||||
/**
|
||||
* Check that `UnityAds` has been initialized. This might be useful for debugging initialization problems.
|
||||
*
|
||||
* @return If `YES`, Unity Ads has been successfully initialized.
|
||||
*/
|
||||
+ (BOOL)isInitialized;
|
||||
|
||||
@end
|
||||
NS_ASSUME_NONNULL_END
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c99bfe4fc4e5c4dc3917c14075acd117
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
#import "UnityAds.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@protocol UnityAdsExtendedDelegate <UnityAdsDelegate>
|
||||
/**
|
||||
* Called when a click event happens.
|
||||
*
|
||||
* @param placementId The ID of the placement that was clicked.
|
||||
*/
|
||||
- (void)unityAdsDidClick:(NSString *)placementId;
|
||||
|
||||
/**
|
||||
* Called when a placement changes state.
|
||||
*
|
||||
* @param placementId The ID of the placement that changed state.
|
||||
* @param oldState The state before the change.
|
||||
* @param newState The state after the change.
|
||||
*/
|
||||
- (void)unityAdsPlacementStateChanged:(NSString *)placementId oldState:(UnityAdsPlacementState)oldState newState:(UnityAdsPlacementState)newState;
|
||||
@end
|
||||
NS_ASSUME_NONNULL_END
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a6842a74831964edc8fefa1c0aed89dc
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
#import "UnityAds.h"
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@protocol UnityAdsUnityDelegate <UnityAdsDelegate>
|
||||
/**
|
||||
* Called when an in-app purchase is initiated from an ad.
|
||||
*
|
||||
* @param eventString The string provided via the ad.
|
||||
*/
|
||||
- (void)unityAdsDidInitiatePurchase:(NSString *)eventString;
|
||||
@end
|
||||
NS_ASSUME_NONNULL_END
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ce4395ccdb12cf62fca756358be1a892
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc1b50b5501f748da8bec762294d9136
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3cebe1a96232b44388b30b2f72dde434
|
||||
folderAsset: yes
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
framework module UnityAds {
|
||||
umbrella header "UnityAds.h"
|
||||
header "UnityAdsExtended.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c5ba7626a737840ff88a3bd84b100482
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d1c1a2d988f5148fd9ab17b2460d271e
|
||||
timeCreated: 1491258705
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6597c6ea86d36477081342001145d8d9
|
||||
timeCreated: 1492551631
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,25 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a342381d77833427fa10621e38fbae10
|
||||
timeCreated: 1491945648
|
||||
licenseType: Pro
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
Editor:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
WindowsStoreApps:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
data:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,32 @@
|
||||
**Unity Companion Package License v1.0 ("_License_")**
|
||||
|
||||
Copyright © 2017 Unity Technologies ApS ("**_Unity_**")
|
||||
|
||||
Unity hereby grants to you a worldwide, non-exclusive, no-charge, and royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the software that is made available with this License ("**_Software_**"), subject to the following terms and conditions:
|
||||
|
||||
1. *Unity Companion Use Only*. Exercise of the license granted herein is limited to exercise for the creation, use, and/or distribution of applications, software, or other content pursuant to a valid Unity development engine software license ("**_Engine License_**"). That means while use of the Software is not limited to use in the software licensed under the Engine License, the Software may not be used for any purpose other than the creation, use, and/or distribution of Engine License-dependent applications, software, or other content. No other exercise of the license granted herein is permitted.
|
||||
|
||||
1. *No Modification of Engine License*. Neither this License nor any exercise of the license granted herein modifies the Engine License in any way.
|
||||
|
||||
1. *Ownership & Grant Back to You*.
|
||||
|
||||
3.1. You own your content. In this License, "derivative works" means derivatives of the Software itself--works derived only from the Software by you under this License (for example, modifying the code of the Software itself to improve its efficacy); “derivative works” of the Software do not include, for example, games, apps, or content that you create using the Software. You keep all right, title, and interest to your own content.
|
||||
|
||||
3.2. Unity owns its content. While you keep all right, title, and interest to your own content per the above, as between Unity and you, Unity will own all right, title, and interest to all intellectual property rights (including patent, trademark, and copyright) in the Software and derivative works of the Software, and you hereby assign and agree to assign all such rights in those derivative works to Unity.
|
||||
|
||||
3.3. You have a license to those derivative works. Subject to this License, Unity grants to you the same worldwide, non-exclusive, no-charge, and royalty-free copyright license to derivative works of the Software you create as is granted to you for the Software under this License.
|
||||
|
||||
1. *Trademarks*. You are not granted any right or license under this License to use any trademarks, service marks, trade names, products names, or branding of Unity or its affiliates ("**_Trademarks_**"). Descriptive uses of Trademarks are permitted; see, for example, Unity’s Branding Usage Guidelines at [https://unity3d.com/public-relations/brand](https://unity3d.com/public-relations/brand).
|
||||
|
||||
1. *Notices & Third-Party Rights*. This License, including the copyright notice above, must be provided in all substantial portions of the Software and derivative works thereof (or, if that is impracticable, in any other location where such notices are customarily placed). Further, if the Software is accompanied by a Unity "third-party notices" or similar file, you acknowledge and agree that software identified in that file is governed by those separate license terms.
|
||||
|
||||
1. *DISCLAIMER, LIMITATION OF LIABILITY*. THE SOFTWARE AND ANY DERIVATIVE WORKS THEREOF IS PROVIDED ON AN "AS IS" BASIS, AND IS PROVIDED WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND/OR NONINFRINGEMENT. IN NO EVENT SHALL ANY COPYRIGHT HOLDER OR AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES (WHETHER DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL, INCLUDING PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF USE, DATA, OR PROFITS, AND BUSINESS INTERRUPTION), OR OTHER LIABILITY WHATSOEVER, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM OR OUT OF, OR IN CONNECTION WITH, THE SOFTWARE OR ANY DERIVATIVE WORKS THEREOF OR THE USE OF OR OTHER DEALINGS IN SAME, EVEN WHERE ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
1. *USE IS ACCEPTANCE and License Versions*. Your receipt and use of the Software constitutes your acceptance of this License and its terms and conditions. Software released by Unity under this License may be modified or updated and the License with it; upon any such modification or update, you will comply with the terms of the updated License for any use of any of the Software under the updated License.
|
||||
|
||||
1. *Use in Compliance with Law and Termination*. Your exercise of the license granted herein will at all times be in compliance with applicable law and will not infringe any proprietary rights (including intellectual property rights); this License will terminate immediately on any breach by you of this License.
|
||||
|
||||
1. *Severability*. If any provision of this License is held to be unenforceable or invalid, that provision will be enforced to the maximum extent possible and the other provisions will remain in full force and effect.
|
||||
|
||||
1. *Governing Law and Venue*. This License is governed by and construed in accordance with the laws of Denmark, except for its conflict of laws rules; the United Nations Convention on Contracts for the International Sale of Goods will not apply. If you reside (or your principal place of business is) within the United States, you and Unity agree to submit to the personal and exclusive jurisdiction of and venue in the state and federal courts located in San Francisco County, California concerning any dispute arising out of this License ("**_Dispute_**"). If you reside (or your principal place of business is) outside the United States, you and Unity agree to submit to the personal and exclusive jurisdiction of and venue in the courts located in Copenhagen, Denmark concerning any Dispute.
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c6fe94acbb24417c988bab18cbd5209
|
||||
timeCreated: 1504642506
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,4 @@
|
||||
# Unity Ads
|
||||
|
||||
Implementation of the Unity Ads API.
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 62772aad98ed04f0d955b7d20de61f7f
|
||||
timeCreated: 1493316656
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e57a6c62c1ec47d0bceb70495845164
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,121 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3b07d432cba2a4c4f8a2fdea984620b8
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 0
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXIntel: 1
|
||||
Exclude OSXIntel64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 0
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXIntel
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXIntel64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"category": "AssetStore/Unity",
|
||||
"description": "Unity Ads is a video ad network for iOS and Android that allows you to quickly and effectively monetize your games.",
|
||||
"gitHead": "0d2114387a99011be685886f8ea902242e323e70",
|
||||
"keywords": [
|
||||
"ads",
|
||||
"unity"
|
||||
],
|
||||
"name": "com.unity.ads",
|
||||
"repoPackagePath": "build/install/com.unity.ads",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/Unity-Technologies/com.unity.ads.git"
|
||||
},
|
||||
"unity": "2017.4",
|
||||
"version": "2.0.8"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dced8f6ea9f964e8e8e61574ea889d21
|
||||
timeCreated: 1491258710
|
||||
licenseType: Pro
|
||||
TextScriptImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user