数数SDK迁移、adjust事件上报
This commit is contained in:
parent
9e1dd78d95
commit
3d2d85624a
|
@ -1,8 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b29c81236c1a545488a2ac4eb6d5f598
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
Before Width: | Height: | Size: 3.8 KiB |
|
@ -1,123 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a57a02d0faa91492bb9147668fed8c00
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 1
|
||||
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
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -3
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: 1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 3, y: 5, z: 6, w: 6}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 2
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 4
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
Before Width: | Height: | Size: 3.8 KiB |
|
@ -1,123 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 937c96556f7574eaaa1751e2092f0b63
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 1
|
||||
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
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -3
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: 1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 2
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 4
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
Before Width: | Height: | Size: 3.9 KiB |
|
@ -1,123 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: aac4f7023d2ef4295ac6071b8e1d8853
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 1
|
||||
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
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -3
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: 1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 2
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 4
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
Before Width: | Height: | Size: 18 KiB |
|
@ -1,123 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1c8be89e83f14479081250d0c4806b85
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
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
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -3
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: 1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: 4
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 1
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Android
|
||||
maxTextureSize: 1024
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: ae3eea2b77eaa4081a2c018523da8fc8
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 48b9be70902884a76ba1b53926fd3e37
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -1,32 +0,0 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using ThinkingData.Analytics;
|
||||
|
||||
public class OtherScene : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void OnGUI()
|
||||
{
|
||||
if (GUI.Button(new Rect(20, 40, 300, 50), "Back To TDAnalyticsDemo"))
|
||||
{
|
||||
SceneManager.LoadScene("TDAnalyticsDemo", LoadSceneMode.Single);
|
||||
}
|
||||
if (GUI.Button(new Rect(20*2+300, 40, 300, 50), "TrackEvent"))
|
||||
{
|
||||
TDAnalytics.Track("TA", new Dictionary<string, object>() { { "other_scene", "OtherScene" } });
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 157108d09ae574dedb267eedc3438757
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,316 +0,0 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 9
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.18018606, g: 0.22559257, b: 0.30678663, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 12
|
||||
m_GIWorkflowMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 12
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAmbientOcclusion: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 256
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 2
|
||||
m_BakeBackend: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_LightingSettings: {fileID: 0}
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
accuratePlacement: 0
|
||||
maxJobWorkers: 0
|
||||
preserveTilesOutsideBounds: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &1123045975
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1123045978}
|
||||
- component: {fileID: 1123045977}
|
||||
- component: {fileID: 1123045976}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &1123045976
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1123045975}
|
||||
m_Enabled: 0
|
||||
--- !u!20 &1123045977
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1123045975}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.0039215684, g: 0.3612774, b: 1, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &1123045978
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1123045975}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1248963544
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1248963546}
|
||||
- component: {fileID: 1248963545}
|
||||
- component: {fileID: 1248963547}
|
||||
m_Layer: 0
|
||||
m_Name: Directional Light
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!108 &1248963545
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1248963544}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 10
|
||||
m_Type: 1
|
||||
m_Shape: 0
|
||||
m_Color: {r: 0.003921569, g: 0.28235295, b: 1, a: 1}
|
||||
m_Intensity: 1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_InnerSpotAngle: 21.80208
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 2
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: 0.05
|
||||
m_NormalBias: 0.4
|
||||
m_NearPlane: 0.2
|
||||
m_CullingMatrixOverride:
|
||||
e00: 1
|
||||
e01: 0
|
||||
e02: 0
|
||||
e03: 0
|
||||
e10: 0
|
||||
e11: 1
|
||||
e12: 0
|
||||
e13: 0
|
||||
e20: 0
|
||||
e21: 0
|
||||
e22: 1
|
||||
e23: 0
|
||||
e30: 0
|
||||
e31: 0
|
||||
e32: 0
|
||||
e33: 1
|
||||
m_UseCullingMatrixOverride: 0
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingLayerMask: 1
|
||||
m_Lightmapping: 4
|
||||
m_LightShadowCasterMode: 0
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 1
|
||||
m_ColorTemperature: 6570
|
||||
m_UseColorTemperature: 0
|
||||
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_UseBoundingSphereOverride: 0
|
||||
m_UseViewFrustumForShadowCasterCull: 1
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
--- !u!4 &1248963546
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1248963544}
|
||||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||
--- !u!114 &1248963547
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1248963544}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 157108d09ae574dedb267eedc3438757, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 667cb3338b0414099b222ac71a908e8e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,384 +0,0 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using ThinkingAnalytics;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
public class TAExample : MonoBehaviour, IDynamicSuperProperties, IAutoTrackEventCallback
|
||||
{
|
||||
|
||||
|
||||
public GUISkin skin;
|
||||
private Vector2 scrollPosition = Vector2.zero;
|
||||
//private static Color MainColor = new Color(0, 0,0);
|
||||
private static Color MainColor = new Color(84f / 255, 116f / 255, 241f / 255);
|
||||
private static Color TextColor = new Color(153f / 255, 153f / 255, 153f / 255);
|
||||
static int Margin = 20;
|
||||
static int Height = 60;
|
||||
static float ContainerWidth = Screen.width - 2 * Margin;
|
||||
// dynamic super properties interface implementation
|
||||
public Dictionary<string, object> GetDynamicSuperProperties()
|
||||
{
|
||||
return new Dictionary<string, object>()
|
||||
{
|
||||
{"dynamic_property", DateTime.Now}
|
||||
};
|
||||
}
|
||||
// auto-tracking events interface implementation
|
||||
public Dictionary<string, object> AutoTrackEventCallback(int type, Dictionary<string, object>properties)
|
||||
{
|
||||
return new Dictionary<string, object>()
|
||||
{
|
||||
{"auto_track_dynamic", DateTime.Today}
|
||||
};
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
}
|
||||
private void Start()
|
||||
{
|
||||
// When automatically initializing ThinkingAnalytics, you can call EnableAutoTrack() in Start() to enable auto-tracking events
|
||||
// enable auto-tracking events
|
||||
// ThinkingAnalyticsAPI.EnableAutoTrack(AUTO_TRACK_EVENTS.ALL);
|
||||
}
|
||||
|
||||
void OnGUI()
|
||||
{
|
||||
GUILayout.BeginArea(new Rect(Margin, Screen.height * 0.15f, Screen.width-2*Margin, Screen.height));
|
||||
scrollPosition = GUILayout.BeginScrollView(new Vector2(0, 0), GUILayout.Width(Screen.width - 2 * Margin), GUILayout.Height(Screen.height - 100));
|
||||
GUIStyle style = GUI.skin.label;
|
||||
style.fontSize = 25;
|
||||
GUILayout.Label("Initialization / UserIDSetting",style);
|
||||
|
||||
GUIStyle buttonStyle = GUI.skin.button;
|
||||
buttonStyle.fontSize = 20;
|
||||
GUILayout.BeginHorizontal(GUI.skin.box,GUILayout.Height(Height));
|
||||
if (GUILayout.Button("ManualInitialization", GUILayout.Height(Height)))
|
||||
{
|
||||
// 1. Manual initialization (ThinkingAnalytics prefab loaded)
|
||||
// ThinkingAnalyticsAPI.StartThinkingAnalytics();
|
||||
|
||||
|
||||
// 2. Manual initialization (dynamically loading ThinkingAnalyticsAPI script)
|
||||
new GameObject("ThinkingAnalytics", typeof(ThinkingAnalyticsAPI));
|
||||
|
||||
// 2.1 Set instance parameters
|
||||
string appId = "22e445595b0f42bd8c5fe35bc44b88d6";
|
||||
string serverUrl = "https://receiver-ta-dev.thinkingdata.cn";
|
||||
ThinkingAnalyticsAPI.StartThinkingAnalytics(appId, serverUrl);
|
||||
|
||||
// 2.1 Set personalized instance parameters
|
||||
// string appId = "22e445595b0f42bd8c5fe35bc44b88d6";
|
||||
// string serverUrl = "https://receiver-ta-dev.thinkingdata.cn";
|
||||
// ThinkingAnalyticsAPI.TAMode mode = ThinkingAnalyticsAPI.TAMode.NORMAL;
|
||||
// ThinkingAnalyticsAPI.TATimeZone timeZone = ThinkingAnalyticsAPI.TATimeZone.Local;
|
||||
// ThinkingAnalyticsAPI.Token token = new ThinkingAnalyticsAPI.Token(appId, serverUrl, mode, timeZone);
|
||||
// Enable encrypted transmission (only iOS/Android)
|
||||
// token.enableEncrypt = true;
|
||||
// token.encryptVersion = 0;
|
||||
// token.encryptPublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCIPi6aHymT1jdETRci6f1ck535n13IX3p9XNLFu5xncfzNFl6kFVMiMSXMIwWSW2lF6ELtIlDJ0B00qE9C02n6YbIAV+VvVkchydbWrm8VdnEJk/6tIydoUxGyM9pDT6U/PaoEiItl/BawDj3/+KW6U7AejYPij9uTQ4H3bQqj1wIDAQAB";
|
||||
// ThinkingAnalyticsAPI.StartThinkingAnalytics(token);
|
||||
|
||||
// 2.2 Multi-project support
|
||||
// string appId_2 = "1b1c1fef65e3482bad5c9d0e6a823356";
|
||||
// string serverUrl_2 = "https://receiver-ta-dev.thinkingdata.cn";
|
||||
// ThinkingAnalyticsAPI.TAMode mode_2 = ThinkingAnalyticsAPI.TAMode.NORMAL;
|
||||
// ThinkingAnalyticsAPI.TATimeZone timeZone_2 = ThinkingAnalyticsAPI.TATimeZone.Local;
|
||||
// ThinkingAnalyticsAPI.Token token_2 = new ThinkingAnalyticsAPI.Token(appId_2, serverUrl_2, mode_2, timeZone_2);
|
||||
|
||||
// ThinkingAnalyticsAPI.Token[] tokens = new ThinkingAnalyticsAPI.Token[2];
|
||||
// tokens[0] = token;
|
||||
// tokens[1] = token_2;
|
||||
// ThinkingAnalyticsAPI.StartThinkingAnalytics(tokens);
|
||||
|
||||
// Multi-item track events
|
||||
// ThinkingAnalyticsAPI.Track("test_event");
|
||||
// ThinkingAnalyticsAPI.Track("test_event_2", appId:appId_2);
|
||||
|
||||
|
||||
// Enable auto-tracking events
|
||||
// ThinkingAnalyticsAPI.EnableAutoTrack(AUTO_TRACK_EVENTS.ALL);
|
||||
// Enable auto-tracking events, and set properties
|
||||
// ThinkingAnalyticsAPI.SetAutoTrackProperties(AUTO_TRACK_EVENTS.ALL, new Dictionary<string, object>()
|
||||
// {
|
||||
// {"auto_track_static_1", "value_1"}
|
||||
// });
|
||||
// ThinkingAnalyticsAPI.EnableAutoTrack(AUTO_TRACK_EVENTS.ALL, new Dictionary<string, object>()
|
||||
// {
|
||||
// {"auto_track_static_2", "value_2"}
|
||||
// });
|
||||
// Enable auto-tracking events, and set callback
|
||||
// ThinkingAnalyticsAPI.EnableAutoTrack(AUTO_TRACK_EVENTS.ALL, this);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("SetAccountID", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.Login("TA");
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("SetDistinctID", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.Identify("TA_DistinctID");
|
||||
Debug.Log("DistinctID: " + ThinkingAnalyticsAPI.GetDistinctId());
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("ClearAccountID", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.Logout();
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
GUILayout.Space(20);
|
||||
GUILayout.Label("EventTracking", GUI.skin.label);
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("TrackEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> properties = new Dictionary<string, object>();
|
||||
properties["channel"] = "ta";//string
|
||||
properties["age"] = 1;//number - int
|
||||
properties["weight"] = 5.46;//number - float
|
||||
properties["balance"] = -0.4;//number - negative
|
||||
properties["isVip"] = true;//bool
|
||||
properties["birthday"] = new DateTime(2022,01,01);//date
|
||||
properties["object"] = new Dictionary<string, object>() { { "key", "value" } };//object
|
||||
properties["object_arr"] = new List<object>() { new Dictionary<string, object>() { { "key", "value" } } };//object array
|
||||
properties["arr"] = new List<object>() { "value" };//array
|
||||
|
||||
ThinkingAnalyticsAPI.Track("TA", properties);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackFirstEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> properties = new Dictionary<string, object>();
|
||||
properties["status"] = 1;
|
||||
TDFirstEvent firstEvent = new TDFirstEvent("DEVICE_FIRST", properties);
|
||||
ThinkingAnalyticsAPI.Track(firstEvent);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackUpdateEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> properties = new Dictionary<string, object>();
|
||||
properties["status"] = 2;
|
||||
TDUpdatableEvent updatableEvent = new TDUpdatableEvent("UPDATABLE_EVENT", properties, "test_event_id");
|
||||
updatableEvent.EventTime = DateTime.Now;
|
||||
updatableEvent.EventTimeZone = TimeZoneInfo.Local;
|
||||
ThinkingAnalyticsAPI.Track(updatableEvent);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackOverwriteEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> properties = new Dictionary<string, object>();
|
||||
properties["status"] = 3;
|
||||
TDOverWritableEvent overWritableEvent = new TDOverWritableEvent("OVERWRITABLE_EVENT", properties, "test_event_id");
|
||||
overWritableEvent.EventTime = DateTime.Now;
|
||||
overWritableEvent.EventTimeZone = TimeZoneInfo.Utc;
|
||||
ThinkingAnalyticsAPI.Track(overWritableEvent);
|
||||
}
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("TimeEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.TimeEvent("TATimeEvent");
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("Track-TimeEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.Track("TATimeEvent");
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackEventWithDate", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> properties = new Dictionary<string, object>();
|
||||
ThinkingAnalyticsAPI.Track("TA_Utc", properties, DateTime.Now.AddDays(1), TimeZoneInfo.Utc);
|
||||
ThinkingAnalyticsAPI.Track("TA_Local", properties, DateTime.Now.AddDays(1), TimeZoneInfo.Local);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackEventWithLightInstance", GUILayout.Height(Height)))
|
||||
{
|
||||
string lightToken = ThinkingAnalyticsAPI.CreateLightInstance();
|
||||
ThinkingAnalyticsAPI.Login("light_account", lightToken);
|
||||
ThinkingAnalyticsAPI.Track("light_event", lightToken);
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
|
||||
|
||||
|
||||
GUILayout.Space(20);
|
||||
GUILayout.Label("UserProperty", GUI.skin.label);
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("UserSet", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> userProperties = new Dictionary<string, object>();
|
||||
userProperties["age"] = 1;
|
||||
ThinkingAnalyticsAPI.UserSet(userProperties);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserSetOnce", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> userProperties = new Dictionary<string, object>();
|
||||
userProperties["gender"] = 1;
|
||||
ThinkingAnalyticsAPI.UserSetOnce(userProperties);
|
||||
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserAdd", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.UserAdd("usercoin", 1);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserUnset", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.UserUnset("usercoin");
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserDelete", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.UserDelete();
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserAppend", GUILayout.Height(Height)))
|
||||
{
|
||||
List<string> propList = new List<string>();
|
||||
propList.Add("ball");
|
||||
Dictionary<string, object> userProperties = new Dictionary<string, object>();
|
||||
userProperties["prop"] = propList;
|
||||
ThinkingAnalyticsAPI.UserAppend(userProperties);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserUniqAppend", GUILayout.Height(Height)))
|
||||
{
|
||||
List<string> propList = new List<string>();
|
||||
propList.Add("apple");
|
||||
Dictionary<string, object> userProperties = new Dictionary<string, object>();
|
||||
userProperties["prop"] = propList;
|
||||
ThinkingAnalyticsAPI.UserUniqAppend(userProperties);
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
|
||||
|
||||
GUILayout.Space(20);
|
||||
GUILayout.Label("OtherSetting", GUI.skin.label);
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("Flush", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.Flush();
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("GetDeviceID", GUILayout.Height(Height)))
|
||||
{
|
||||
Debug.Log("DeviceID: " + ThinkingAnalyticsAPI.GetDeviceId());
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("Pause", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.SetTrackStatus(TA_TRACK_STATUS.PAUSE);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("Stop", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.SetTrackStatus(TA_TRACK_STATUS.STOP);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("SaveOnly", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.SetTrackStatus(TA_TRACK_STATUS.SAVE_ONLY);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("Normal", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.SetTrackStatus(TA_TRACK_STATUS.NORMAL);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("CalibrateTime", GUILayout.Height(Height)))
|
||||
{
|
||||
//currnt Unix timestamp, units Ms, e.g: 1608782412000 -> 2020-12-24 12:00:12
|
||||
ThinkingAnalyticsAPI.CalibrateTime(1608782412000);
|
||||
|
||||
//NTP server, e.g: time.apple.com
|
||||
ThinkingAnalyticsAPI.CalibrateTimeWithNtp("time.apple.com");
|
||||
//ThinkingAnalyticsAPI.CalibrateTimeWithNtp("time1.google.com");
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
GUILayout.Space(20);
|
||||
GUILayout.Label("PropertiesSetting", GUI.skin.label);
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("SetSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> superProperties = new Dictionary<string, object>();
|
||||
superProperties["VipLevel"] = 1;
|
||||
superProperties["VipTitle"] = "Supreme King";
|
||||
ThinkingAnalyticsAPI.SetSuperProperties(superProperties);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UpdateSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> superProperties = new Dictionary<string, object>();
|
||||
superProperties["VipLevel"] = 2;
|
||||
ThinkingAnalyticsAPI.SetSuperProperties(superProperties);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("ClearSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.UnsetSuperProperty("VipLevel");
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("ClearAllSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.ClearSuperProperties();
|
||||
}
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("SetDynamicSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
ThinkingAnalyticsAPI.SetDynamicSuperProperties(this);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("GetSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> eventSuperProperties = ThinkingAnalyticsAPI.GetSuperProperties();
|
||||
string propertiesStr = " ";
|
||||
foreach (KeyValuePair<string, object> kv in eventSuperProperties)
|
||||
{
|
||||
propertiesStr = propertiesStr + kv.Key + " = " + kv.Value + "\n ";
|
||||
}
|
||||
Debug.Log("SuperProperties: \n" + propertiesStr);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("GetPresetProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
TDPresetProperties presetProperties = ThinkingAnalyticsAPI.GetPresetProperties();
|
||||
string deviceModel = presetProperties.DeviceModel;
|
||||
Debug.Log("TDPresetProperties DeviceModel is " + deviceModel);
|
||||
Dictionary<string, object> eventPresetProperties = presetProperties.ToEventPresetProperties();
|
||||
string propertiesStr = " ";
|
||||
foreach (KeyValuePair<string, object> kv in eventPresetProperties)
|
||||
{
|
||||
propertiesStr = propertiesStr + kv.Key + " = " + kv.Value + "\n ";
|
||||
}
|
||||
Debug.Log("PresetProperties: \n" + propertiesStr);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("LoadScene", GUILayout.Height(Height)))
|
||||
{
|
||||
SceneManager.LoadScene("OtherScene", LoadSceneMode.Single);
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.EndScrollView();
|
||||
GUILayout.EndArea();
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 87d98871b303b4786b3dac3fd1b6e6eb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,518 +0,0 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using ThinkingData.Analytics;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Collections;
|
||||
using ThinkingAnalytics;
|
||||
public class TDAnalyticsDemo : MonoBehaviour, TDDynamicSuperPropertiesHandler, TDAutoTrackEventHandler
|
||||
{
|
||||
|
||||
|
||||
public GUISkin skin;
|
||||
private Vector2 scrollPosition = Vector2.zero;
|
||||
//private static Color MainColor = new Color(0, 0,0);
|
||||
private static Color MainColor = new Color(84f / 255, 116f / 255, 241f / 255);
|
||||
private static Color TextColor = new Color(153f / 255, 153f / 255, 153f / 255);
|
||||
static int Margin = 20;
|
||||
static int Height = 60;
|
||||
static float ContainerWidth = Screen.width - 2 * Margin;
|
||||
// dynamic super properties interface implementation
|
||||
public Dictionary<string, object> GetDynamicSuperProperties()
|
||||
{
|
||||
Thread currentThread = Thread.CurrentThread;
|
||||
// 输出当前线程的信息
|
||||
Debug.Log("当前线程ID: " + currentThread.ManagedThreadId);
|
||||
return new Dictionary<string, object>()
|
||||
{
|
||||
{"dynamic_property", DateTime.Now},
|
||||
{"dynamic_property1", DateTime.Now},
|
||||
{"dynamic_property2", DateTime.Now},
|
||||
{"dynamic_property3", DateTime.Now},
|
||||
{"dynamicTime4", DateTime.Now}
|
||||
};
|
||||
}
|
||||
// auto-tracking events interface implementation
|
||||
public Dictionary<string, object> GetAutoTrackEventProperties(int type, Dictionary<string, object>properties)
|
||||
{
|
||||
return new Dictionary<string, object>()
|
||||
{
|
||||
{"auto_track_dynamic", DateTime.Today}
|
||||
};
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
}
|
||||
private void Start()
|
||||
{
|
||||
// When automatically initializing ThinkingAnalytics, you can call EnableAutoTrack() in Start() to enable auto-tracking events
|
||||
// enable auto-tracking events
|
||||
// TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.ALL);
|
||||
}
|
||||
private void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void SampleDemo()
|
||||
{
|
||||
//Init SDK
|
||||
string appId = "your-app-id";
|
||||
string serverUrl = "https://your.server.url";
|
||||
TDAnalytics.Init(appId, serverUrl);
|
||||
|
||||
//Login SDK
|
||||
TDAnalytics.Login("Tiki");
|
||||
|
||||
//Set Super Properties
|
||||
//Dictionary<string, object> superProperties = new Dictionary<string, object>() {
|
||||
// { "channel", "Apple Store" },
|
||||
// { "vip_level", 10 },
|
||||
// { "is_svip", true }
|
||||
//};
|
||||
//TDAnalytics.SetSuperProperties(superProperties);
|
||||
|
||||
|
||||
//Track Event
|
||||
Dictionary<string, object> eventProperties = new Dictionary<string, object>()
|
||||
{
|
||||
{ "product_name", "Majin Taito" },
|
||||
{ "product_price", 6 },
|
||||
{ "is_on_sale", true },
|
||||
{ "begin_time", DateTime.Now },
|
||||
{ "skins_name", new List<string>() {
|
||||
"Master Alchemist",
|
||||
"Knights of the Round Table",
|
||||
"Taotie",
|
||||
"Glam Rock"
|
||||
} }
|
||||
};
|
||||
TDAnalytics.Track("product_buy", eventProperties);
|
||||
|
||||
|
||||
//Track User Properties
|
||||
Dictionary<string, object> userProperties = new Dictionary<string, object>()
|
||||
{
|
||||
{ "email", "tiki@thinkingdata.cn" },
|
||||
{ "diamond", 888 },
|
||||
{ "is_svip", true },
|
||||
{ "last_payment_time", DateTime.Now },
|
||||
{ "owned_skins", new List<string>() {
|
||||
"Gun of Travel",
|
||||
"Bow of Demigods",
|
||||
"Golden Sagittarius"
|
||||
} }
|
||||
};
|
||||
TDAnalytics.UserSet(userProperties);
|
||||
|
||||
}
|
||||
|
||||
void OnGUI()
|
||||
{
|
||||
GUILayout.BeginArea(new Rect(Margin, Screen.height * 0.15f, Screen.width-2*Margin, Screen.height));
|
||||
scrollPosition = GUILayout.BeginScrollView(new Vector2(0, 0), GUILayout.Width(Screen.width - 2 * Margin), GUILayout.Height(Screen.height - 100));
|
||||
GUIStyle style = GUI.skin.label;
|
||||
style.fontSize = 25;
|
||||
GUILayout.Label("Initialization / UserIDSetting",style);
|
||||
|
||||
GUIStyle buttonStyle = GUI.skin.button;
|
||||
buttonStyle.fontSize = 20;
|
||||
GUILayout.BeginHorizontal(GUI.skin.box,GUILayout.Height(Height));
|
||||
if (GUILayout.Button("ManualInitialization", GUILayout.Height(Height)))
|
||||
{
|
||||
// 1. Manual initialization (ThinkingAnalytics prefab loaded)
|
||||
//TDAnalytics.Init();
|
||||
|
||||
|
||||
// 2. Manual initialization (dynamically loading TDAnalytics script)
|
||||
//this.gameObject.AddComponent<TDAnalytics>();
|
||||
|
||||
// 2.1 Set instance parameters
|
||||
//string appId = "22e445595b0f42bd8c5fe35bc44b88d6";
|
||||
//string serverUrl = "https://receiver-ta-dev.thinkingdata.cn";
|
||||
//TDAnalytics.Init(appId, serverUrl);
|
||||
|
||||
|
||||
// 2.1 Set personalized instance parameters
|
||||
string appId = "1b1c1fef65e3482bad5c9d0e6a823356";
|
||||
string serverUrl = "https://receiver.ta.thinkingdata.cn";
|
||||
TDConfig tDConfig = new TDConfig(appId, serverUrl);
|
||||
//tDConfig.mode = TDMode.Normal;
|
||||
tDConfig.timeZone = TDTimeZone.Asia_Shanghai;
|
||||
//Enable encrypted transmission(only iOS / Android)
|
||||
int encryptVersion = 0;
|
||||
string encryptPublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCIPi6aHymT1jdETRci6f1ck535n13IX3p9XNLFu5xncfzNFl6kFVMiMSXMIwWSW2lF6ELtIlDJ0B00qE9C02n6YbIAV+VvVkchydbWrm8VdnEJk/6tIydoUxGyM9pDT6U/PaoEiItl/BawDj3/+KW6U7AejYPij9uTQ4H3bQqj1wIDAQAB";
|
||||
tDConfig.EnableEncrypt(encryptPublicKey, encryptVersion);
|
||||
TDAnalytics.Init(tDConfig);
|
||||
//TDAnalytics.SetNetworkType(TDNetworkType.Wifi);
|
||||
TDAnalytics.SetDynamicSuperProperties(this);
|
||||
//TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.AppInstall | TDAutoTrackEventType.AppStart | TDAutoTrackEventType.AppEnd);
|
||||
TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.All);
|
||||
|
||||
|
||||
//new GameObject("ThinkingAnalytics", typeof(ThinkingAnalyticsAPI));
|
||||
//string appId = "40eddce753cd4bef9883a01e168c3df0";
|
||||
//string serverUrl = "https://receiver-ta-preview.thinkingdata.cn";
|
||||
//ThinkingAnalyticsAPI.StartThinkingAnalytics(appId, serverUrl);
|
||||
//ThinkingAnalyticsAPI.SetNetworkType(ThinkingAnalyticsAPI.NetworkType.WIFI);
|
||||
//ThinkingAnalyticsAPI.EnableAutoTrack(AUTO_TRACK_EVENTS.ALL);
|
||||
|
||||
// 2.2 Multi-project support
|
||||
// string appId_2 = "cf918051b394495ca85d1b7787ad7243";
|
||||
// string serverUrl_2 = "https://receiver-ta-dev.thinkingdata.cn";
|
||||
// TDConfig tDConfig_2 = new TDConfig(appId_2, serverUrl_2);
|
||||
|
||||
// TDAnalytics.Init(tDConfig_2);
|
||||
|
||||
// Multi-item track events
|
||||
// TDAnalytics.Track("test_event");
|
||||
// TDAnalytics.Track("test_event_2", appId:appId_2);
|
||||
|
||||
|
||||
// Enable auto-tracking events
|
||||
//TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.All);
|
||||
// Enable auto-tracking events, and set properties
|
||||
// TDAnalytics.SetAutoTrackProperties(TDAutoTrackEventType.All, new Dictionary<string, object>()
|
||||
// {
|
||||
// {"auto_track_static_1", "value_1"}
|
||||
// });
|
||||
// TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.All, new Dictionary<string, object>()
|
||||
// {
|
||||
// {"auto_track_static_2", "value_2"}
|
||||
// });
|
||||
// Enable auto-tracking events, and set callback
|
||||
// TDAnalytics.EnableAutoTrack(TDAutoTrackEventType.All, this);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("SetAccountID", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.Login("TA");
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("SetDistinctID", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.SetDistinctId("TD_DistinctID");
|
||||
string distinctId = TDAnalytics.GetDistinctId();
|
||||
Debug.Log("Current Distinct ID is : " + distinctId);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("ClearAccountID", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.Logout();
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
GUILayout.Space(20);
|
||||
GUILayout.Label("EventTracking", GUI.skin.label);
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("TrackEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
Debug.Log("======1" + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds());
|
||||
//Dictionary<string, object> properties = new Dictionary<string, object>();
|
||||
//properties["channel"] = "ta";//string
|
||||
//properties["age"] = 1;//number - int
|
||||
//properties["weight"] = 5.46;//number - float
|
||||
//properties["balance"] = -0.4;//number - negative
|
||||
//properties["isVip"] = true;//bool
|
||||
//properties["birthday"] = new DateTime(2022,01,01);//date
|
||||
//properties["birthday1"] = new DateTime();//date
|
||||
//properties["birthday2"] = new DateTime(2023, 05, 01);//date
|
||||
//properties["birthday3"] = new DateTime(2023, 05, 03);//date
|
||||
//properties["object"] = new Dictionary<string, object>() { { "key", "value" },{ "key1", DateTime.Now }, { "key2", DateTime.Now } };//object
|
||||
//properties["object_arr"] = new List<object>() { new Dictionary<string, object>() { { "key", "value" }, { "key3", DateTime.Now }, { "key4", DateTime.Now } } };//object array
|
||||
//properties["arr"] = new List<object>() { "value" };//array
|
||||
//TDAnalytics.Track("TA", properties);
|
||||
Decimal a = 1;
|
||||
Dictionary<string, object> properties = new Dictionary<string, object>();
|
||||
properties["channel"] = "ta";//string
|
||||
properties["age"] = 1;//number - int
|
||||
properties["weight"] = 5.46;//number - float
|
||||
properties["balance"] = -0.4;//number - negative
|
||||
properties["isVip"] = true;//bool
|
||||
properties["date1"] = new DateTime();
|
||||
properties["date2"] = new DateTime();
|
||||
properties["date3"] = new DateTime();
|
||||
properties["date4"] = new DateTime();
|
||||
properties["date5"] = new DateTime();
|
||||
properties["date6"] = DateTime.Now;
|
||||
properties["num"] = a;
|
||||
properties["birthday"] = new DateTime(2022, 01, 01);//date
|
||||
properties["object"] = new Dictionary<string, object>() { { "key", "value" }, { "data1", new DateTime() }, { "data2", new DateTime() }, { "data3", new DateTime() }, { "data4", new DateTime() }, { "data5", new DateTime() } };//object
|
||||
properties["object_arr"] = new List<object>() { new Dictionary<string, object>() { { "key", "value" }, { "data1", new DateTime() }, { "data2", new DateTime() }, { "data3", new DateTime() }, { "data4", new DateTime() }, { "data5", new DateTime() } } };//object array
|
||||
properties["arr"] = new List<object>() { "value", new DateTime(), new DateTime(), new DateTime(), new DateTime(), new DateTime() };//array
|
||||
TDAnalytics.Track("TA", properties);
|
||||
Debug.Log("======2" + DateTimeOffset.UtcNow.ToUnixTimeMilliseconds());
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackFirstEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> properties = new Dictionary<string, object>() { { "status",1 } };
|
||||
TDFirstEventModel firstEvent = new TDFirstEventModel("first_event");
|
||||
firstEvent.Properties = properties;
|
||||
TDAnalytics.Track(firstEvent);
|
||||
Dictionary<string, object> properties_2 = new Dictionary<string, object>() { { "status", 11 } };
|
||||
TDFirstEventModel firstEvent_2 = new TDFirstEventModel("first_event", "first_check_id");
|
||||
firstEvent_2.Properties = properties_2;
|
||||
TDAnalytics.Track(firstEvent_2);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackUpdateEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> properties = new Dictionary<string, object>() { { "status", 2 } };
|
||||
TDUpdatableEventModel updatableEvent = new TDUpdatableEventModel("updatable_event", "test_event_id");
|
||||
updatableEvent.Properties = properties;
|
||||
updatableEvent.SetTime(DateTime.Now, TimeZoneInfo.Local);
|
||||
TDAnalytics.Track(updatableEvent);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackOverwriteEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> properties = new Dictionary<string, object>() { { "status", 3 } };
|
||||
TDOverwritableEventModel overWritableEvent = new TDOverwritableEventModel("overwritable_event", "test_event_id");
|
||||
overWritableEvent.Properties = properties;
|
||||
overWritableEvent.SetTime(DateTime.Now, TimeZoneInfo.Utc);
|
||||
TDAnalytics.Track(overWritableEvent);
|
||||
}
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("TimeEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.TimeEvent("TATimeEvent");
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("Track-TimeEvent", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.Track("TATimeEvent");
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackEventWithDate", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> properties = new Dictionary<string, object>();
|
||||
TDAnalytics.Track("TA_Utc", properties, DateTime.Now.AddDays(1), TimeZoneInfo.Utc);
|
||||
TDAnalytics.Track("TA_Local", properties, DateTime.Now.AddDays(1), TimeZoneInfo.Local);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackEvent-LightInstance", GUILayout.Height(Height)))
|
||||
{
|
||||
string lightToken = TDAnalytics.LightInstance();
|
||||
TDAnalytics.Login("light_account", lightToken);
|
||||
TDAnalytics.Track("light_event", lightToken);
|
||||
TDAnalytics.Flush();
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("TrackEvent-MultiInstance", GUILayout.Height(Height)))
|
||||
{
|
||||
string appId_2 = "cf918051b394495ca85d1b7787ad7243";
|
||||
string serverUrl_2 = "https://receiver-ta-dev.thinkingdata.cn";
|
||||
TDConfig token_2 = new TDConfig(appId_2, serverUrl_2);
|
||||
token_2.mode = TDMode.Normal;
|
||||
token_2.timeZone = TDTimeZone.UTC;
|
||||
// initial multi-instance
|
||||
TDAnalytics.Init(token_2);
|
||||
// login account
|
||||
TDAnalytics.Login("Tiki", appId_2);
|
||||
// track normal event
|
||||
TDAnalytics.Track("TA", appId_2);
|
||||
// track user properties
|
||||
TDAnalytics.UserSet(new Dictionary<string, object>() { { "age", 18 } }, appId_2);
|
||||
// flush data
|
||||
TDAnalytics.Flush(appId_2);
|
||||
|
||||
string instanceName = "ThinkingData";
|
||||
TDConfig token_3 = new TDConfig(appId_2, serverUrl_2);
|
||||
token_3.name = instanceName;
|
||||
// initial multi-instance
|
||||
TDAnalytics.Init(token_3);
|
||||
// login account
|
||||
TDAnalytics.Login("Thinker", instanceName);
|
||||
// track normal event
|
||||
TDAnalytics.Track("TA", instanceName);
|
||||
// track user properties
|
||||
TDAnalytics.UserSet(new Dictionary<string, object>() { { "age", 18 } }, instanceName);
|
||||
// flush data
|
||||
TDAnalytics.Flush(instanceName);
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
|
||||
|
||||
|
||||
GUILayout.Space(20);
|
||||
GUILayout.Label("UserProperty", GUI.skin.label);
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("UserSet", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> userProperties = new Dictionary<string, object>() { { "age", 18 } };
|
||||
TDAnalytics.UserSet(userProperties);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserSetOnce", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> userProperties = new Dictionary<string, object>() { { "gender", 1 } };
|
||||
TDAnalytics.UserSetOnce(userProperties);
|
||||
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserAdd", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.UserAdd("user_coin", 1);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserUnset", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.UserUnset("user_coin");
|
||||
TDAnalytics.UserUnset(new List<string>() { "user_coin", "user_vip" });
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserDelete", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.UserDelete();
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserAppend", GUILayout.Height(Height)))
|
||||
{
|
||||
List<string> propList = new List<string>() { "apple", "ball" };
|
||||
Dictionary<string, object> userProperties = new Dictionary<string, object>() { { "prop", propList } };
|
||||
TDAnalytics.UserAppend(userProperties);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UserUniqAppend", GUILayout.Height(Height)))
|
||||
{
|
||||
List<string> propList = new List<string>() { "apple", "banana" };
|
||||
Dictionary<string, object> userProperties = new Dictionary<string, object>() { { "prop", propList } };
|
||||
TDAnalytics.UserUniqAppend(userProperties);
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
|
||||
|
||||
GUILayout.Space(20);
|
||||
GUILayout.Label("OtherSetting", GUI.skin.label);
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("Flush", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.Flush();
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("GetDeviceID", GUILayout.Height(Height)))
|
||||
{
|
||||
string deviceId = TDAnalytics.GetDeviceId();
|
||||
Debug.Log("Current Device ID is : " + deviceId);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("Pause", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.SetTrackStatus(TDTrackStatus.Pause);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("Stop", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.SetTrackStatus(TDTrackStatus.Stop);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("SaveOnly", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.SetTrackStatus(TDTrackStatus.SaveOnly);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("Normal", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.SetTrackStatus(TDTrackStatus.Normal);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("CalibrateTime", GUILayout.Height(Height)))
|
||||
{
|
||||
//currnt Unix timestamp, units Ms, e.g: 1672531200000 -> 2023-01-01 08:00:00
|
||||
TDAnalytics.CalibrateTime(1672531200000);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("CalibrateTime-NTP", GUILayout.Height(Height)))
|
||||
{
|
||||
//NTP server, e.g: time.apple.com
|
||||
TDAnalytics.CalibrateTimeWithNtp("time.apple.com");
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
GUILayout.Space(20);
|
||||
GUILayout.Label("PropertiesSetting", GUI.skin.label);
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("SetSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> superProperties = new Dictionary<string, object>() {
|
||||
{ "vip_level", 1 },
|
||||
{ "vip_title", "Supreme King" }
|
||||
};
|
||||
TDAnalytics.SetSuperProperties(superProperties);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("UpdateSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> superProperties = new Dictionary<string, object>() {
|
||||
{ "vip_level", 2 }
|
||||
};
|
||||
TDAnalytics.SetSuperProperties(superProperties);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("ClearSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.UnsetSuperProperty("vip_level");
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("ClearAllSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.ClearSuperProperties();
|
||||
}
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.BeginHorizontal(GUI.skin.textArea, GUILayout.Height(Height));
|
||||
if (GUILayout.Button("SetDynamicSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
TDAnalytics.SetDynamicSuperProperties(this);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("GetSuperProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
Dictionary<string, object> eventSuperProperties = TDAnalytics.GetSuperProperties();
|
||||
string propertiesStr = " ";
|
||||
foreach (KeyValuePair<string, object> kv in eventSuperProperties)
|
||||
{
|
||||
propertiesStr = propertiesStr + kv.Key + " = " + kv.Value + "\n ";
|
||||
}
|
||||
Debug.Log("SuperProperties: \n" + propertiesStr);
|
||||
}
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("GetPresetProperties", GUILayout.Height(Height)))
|
||||
{
|
||||
//TDPresetProperties presetProperties = TDAnalytics.GetPresetProperties();
|
||||
//string deviceModel = presetProperties.DeviceModel;
|
||||
//Debug.Log("TDPresetProperties: DeviceModel is " + deviceModel);
|
||||
//Dictionary<string, object> eventPresetProperties = presetProperties.ToDictionary();
|
||||
//string propertiesStr = " ";
|
||||
//foreach (KeyValuePair<string, object> kv in eventPresetProperties)
|
||||
//{
|
||||
// propertiesStr = propertiesStr + kv.Key + " = " + kv.Value + "\n ";
|
||||
//}
|
||||
//Debug.Log("PresetProperties: \n" + propertiesStr);
|
||||
}
|
||||
|
||||
GUILayout.Space(20);
|
||||
if (GUILayout.Button("LoadScene", GUILayout.Height(Height)))
|
||||
{
|
||||
SceneManager.LoadScene("OtherScene", LoadSceneMode.Single);
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.EndScrollView();
|
||||
GUILayout.EndArea();
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fc3b54d5c2d4a455fbc56ab57ca985c6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,513 +0,0 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 9
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 3
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 12
|
||||
m_GIWorkflowMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 12
|
||||
m_Resolution: 1
|
||||
m_BakeResolution: 50
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 1
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAmbientOcclusion: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 256
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 1
|
||||
m_BakeBackend: 0
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 0
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_LightingSettings: {fileID: 679135154}
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666666
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
accuratePlacement: 0
|
||||
maxJobWorkers: 0
|
||||
preserveTilesOutsideBounds: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &269916751
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 269916752}
|
||||
- component: {fileID: 269916753}
|
||||
m_Layer: 0
|
||||
m_Name: td_logo
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &269916752
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 269916751}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 4, z: 0}
|
||||
m_LocalScale: {x: 1.3, y: 1.3, z: 1.3}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1608319071}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &269916753
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 269916751}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 0
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Sprite: {fileID: 21300000, guid: 1c8be89e83f14479081250d0c4806b85, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 5, y: 1.89}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!1001 &278149140
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 57277738888238098, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1362306111410183020, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: enableLog
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1362306111410183020, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: networkType
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1362306111410183020, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: startManually
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1362306111410183020, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: tokens.Array.data[0].mode
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1362306111410183020, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: tokens.Array.data[0].appid
|
||||
value: cf918051b394495ca85d1b7787ad7243
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1362306111410183020, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: tokens.Array.data[0].timeZone
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1362306111410183020, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: tokens.Array.data[0].serverUrl
|
||||
value: https://receiver-ta-dev.thinkingdata.cn
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3471622134282543401, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: TDAnalytics
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3471622134282543401, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 986ad473b78d14e08b1f05d368cb1591, type: 3}
|
||||
--- !u!1 &541060113
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 541060118}
|
||||
- component: {fileID: 541060117}
|
||||
- component: {fileID: 541060115}
|
||||
- component: {fileID: 541060114}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &541060114
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 541060113}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &541060115
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 541060113}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &541060117
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 541060113}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0.32941177, g: 0.45490196, b: 0.94509804, a: 0.019607844}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 1
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &541060118
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 541060113}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!850595691 &679135154
|
||||
LightingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Settings.lighting
|
||||
serializedVersion: 4
|
||||
m_GIWorkflowMode: 1
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_RealtimeEnvironmentLighting: 1
|
||||
m_BounceScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_UsingShadowmask: 0
|
||||
m_BakeBackend: 0
|
||||
m_LightmapMaxSize: 1024
|
||||
m_BakeResolution: 50
|
||||
m_Padding: 2
|
||||
m_LightmapCompression: 0
|
||||
m_AO: 1
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAO: 0
|
||||
m_MixedBakeMode: 1
|
||||
m_LightmapsBakeMode: 1
|
||||
m_FilterMode: 1
|
||||
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_RealtimeResolution: 1
|
||||
m_ForceWhiteAlbedo: 0
|
||||
m_ForceUpdates: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 256
|
||||
m_FinalGatherFiltering: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_PVRBounces: 2
|
||||
m_PVRMinBounces: 1
|
||||
m_PVREnvironmentMIS: 0
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_PVRTiledBaking: 0
|
||||
--- !u!1 &1608319069
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1608319071}
|
||||
- component: {fileID: 1608319070}
|
||||
- component: {fileID: 1608319072}
|
||||
m_Layer: 0
|
||||
m_Name: ThingkingAnalyticsExample
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1608319070
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1608319069}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fc3b54d5c2d4a455fbc56ab57ca985c6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
skin: {fileID: 11400000, guid: 48b9be70902884a76ba1b53926fd3e37, type: 2}
|
||||
--- !u!4 &1608319071
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1608319069}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 269916752}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1608319072
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1608319069}
|
||||
m_Enabled: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 87d98871b303b4786b3dac3fd1b6e6eb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
skin: {fileID: 0}
|
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 741c7d08d0bfd46ae96dff68cdd17f99
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -6,7 +6,7 @@ using UnityEngine;
|
|||
|
||||
public class AdjustManager : MonoBehaviour
|
||||
{
|
||||
private string appToken = "你的App Token"; // 替换为你的实际App Token
|
||||
private string appToken = "cap3ypurzegw"; // 替换为你的实际App Token
|
||||
private AdjustEnvironment environment = AdjustEnvironment.Sandbox; // 测试用Sandbox,发布用Production
|
||||
|
||||
|
||||
|
|
|
@ -11,11 +11,6 @@ public static class AdjustNetwork
|
|||
return;
|
||||
}
|
||||
|
||||
if (network.ToLower().Replace(" ", "") == "Organic".ToLower().Replace(" ", ""))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string curNetwork = PlayerPrefs.GetString(KEY_USER_NETWORK, "");
|
||||
if (string.IsNullOrEmpty(curNetwork))
|
||||
{
|
||||
|
@ -37,6 +32,11 @@ public static class AdjustNetwork
|
|||
return true;
|
||||
}
|
||||
|
||||
if (network.ToLower().Replace(" ", "") == "Organic".ToLower().Replace(" ", ""))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//去除大小写和空格之后再对比
|
||||
if (network.ToLower().Replace(" ", "") == "Untrusted Devices".ToLower().Replace(" ", "") || network.ToLower().Replace(" ", "") == "Google Organic Search".ToLower().Replace(" ", ""))
|
||||
{
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
using AdjustSdk;
|
||||
|
||||
public static class AdjustTrackEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// adjust事件上报
|
||||
/// </summary>
|
||||
/// <param name="trackEvent"></param>
|
||||
public static void TrackEvent(string trackEvent)
|
||||
{
|
||||
AdjustEvent adjustEvent = new AdjustEvent(trackEvent);
|
||||
Adjust.TrackEvent(adjustEvent);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 广告数据上报
|
||||
/// 在onAdRevenuePaid的时候上报
|
||||
/// </summary>
|
||||
/// <param name="TrackAdEvent"></param>
|
||||
public static void TrackAdEvent(double revenue, string adRevenueNetwork, string adRevenueUnit, string adRevenuePlacement)
|
||||
{
|
||||
AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue("applovin_max_sdk");
|
||||
adjustAdRevenue.SetRevenue(revenue, "USD");
|
||||
adjustAdRevenue.AdRevenueNetwork = adRevenueNetwork;
|
||||
adjustAdRevenue.AdRevenueUnit = adRevenueUnit;
|
||||
adjustAdRevenue.AdRevenuePlacement = adRevenuePlacement;
|
||||
Adjust.TrackAdRevenue(adjustAdRevenue);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 48eb187d9cd848d694e8861c24afa81d
|
||||
timeCreated: 1756551120
|
|
@ -6,7 +6,7 @@ using UnityEngine;
|
|||
public class ShuShuMangage : MonoBehaviour
|
||||
{
|
||||
private const string appid = "80f6819a81c743cbad667ecf242f3133";
|
||||
private const string server = "";
|
||||
private const string server = "https://global-receiver-ta.thinkingdata.cn";
|
||||
|
||||
private void Start()
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3d6e178afec714cd393bf6735910293d
|
||||
guid: 9ee4a067eb43dfc47a9cad772d423d71
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue