Skip to content

Commit c1718ba

Browse files
Merge pull request #169 from watson-developer-cloud/develop
Watson Developer Cloud Unity SDK v0.12.0
2 parents b6a34d1 + 2dca2e4 commit c1718ba

File tree

144 files changed

+36325
-34670
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+36325
-34670
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
; Top-most EditorConfig file
2+
root = true
3+
4+
; Unix-style newlines
5+
[*]
6+
end_of_line = LF
7+
8+
; 2-column space indentation
9+
[*.cs]
10+
indent_style = space
11+
indent_size = 2

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
Change Log
22
==========
3+
## Version 0.12.0
4+
_2016-11-4_
5+
* New: Added streaming `SpeechToText` example.
6+
* New: Abstraction for `Personality Insights V3`
7+
38
## Version 0.11.0
4-
_2016_10_27_
9+
_2016-10-27_
510
* New: Abstracted `Speech to Text` customization methods.
611

712
## Version 0.10.0
8-
_2016_09_23_
13+
_2016-09-23_
914

1015
* New: Added `similarity search` to the `Visual Recognition` service.
11-
* Fix: `Touch Widget` improvmements.
16+
* Fix: `Touch Widget` improvements.
1217
* Fix: Disabled 3rd Party plugin warnings.
1318
* Fix: Removed `Conversation` Message overload method that takes only input and conversationID.
1419
* Fix: Rewrote `Conversation` example script to show how to create MessageRequest object.
Lines changed: 282 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,282 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!29 &1
4+
SceneSettings:
5+
m_ObjectHideFlags: 0
6+
m_PVSData:
7+
m_PVSObjectsArray: []
8+
m_PVSPortalsArray: []
9+
m_OcclusionBakeSettings:
10+
smallestOccluder: 5
11+
smallestHole: 0.25
12+
backfaceThreshold: 100
13+
--- !u!104 &2
14+
RenderSettings:
15+
m_ObjectHideFlags: 0
16+
serializedVersion: 7
17+
m_Fog: 0
18+
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
19+
m_FogMode: 3
20+
m_FogDensity: 0.01
21+
m_LinearFogStart: 0
22+
m_LinearFogEnd: 300
23+
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
24+
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
25+
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
26+
m_AmbientIntensity: 1
27+
m_AmbientMode: 0
28+
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
29+
m_HaloStrength: 0.5
30+
m_FlareStrength: 1
31+
m_FlareFadeSpeed: 3
32+
m_HaloTexture: {fileID: 0}
33+
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
34+
m_DefaultReflectionMode: 0
35+
m_DefaultReflectionResolution: 128
36+
m_ReflectionBounces: 1
37+
m_ReflectionIntensity: 1
38+
m_CustomReflection: {fileID: 0}
39+
m_Sun: {fileID: 0}
40+
m_IndirectSpecularColor: {r: 0.4469244, g: 0.4967847, b: 0.575083, a: 1}
41+
--- !u!157 &3
42+
LightmapSettings:
43+
m_ObjectHideFlags: 0
44+
serializedVersion: 7
45+
m_GIWorkflowMode: 0
46+
m_GISettings:
47+
serializedVersion: 2
48+
m_BounceScale: 1
49+
m_IndirectOutputScale: 1
50+
m_AlbedoBoost: 1
51+
m_TemporalCoherenceThreshold: 1
52+
m_EnvironmentLightingMode: 0
53+
m_EnableBakedLightmaps: 1
54+
m_EnableRealtimeLightmaps: 1
55+
m_LightmapEditorSettings:
56+
serializedVersion: 4
57+
m_Resolution: 2
58+
m_BakeResolution: 40
59+
m_TextureWidth: 1024
60+
m_TextureHeight: 1024
61+
m_AO: 0
62+
m_AOMaxDistance: 1
63+
m_CompAOExponent: 1
64+
m_CompAOExponentDirect: 0
65+
m_Padding: 2
66+
m_LightmapParameters: {fileID: 0}
67+
m_LightmapsBakeMode: 1
68+
m_TextureCompression: 1
69+
m_DirectLightInLightProbes: 1
70+
m_FinalGather: 0
71+
m_FinalGatherFiltering: 1
72+
m_FinalGatherRayCount: 256
73+
m_ReflectionCompression: 2
74+
m_LightingDataAsset: {fileID: 0}
75+
m_RuntimeCPUUsage: 25
76+
--- !u!196 &4
77+
NavMeshSettings:
78+
serializedVersion: 2
79+
m_ObjectHideFlags: 0
80+
m_BuildSettings:
81+
serializedVersion: 2
82+
agentRadius: 0.5
83+
agentHeight: 2
84+
agentSlope: 45
85+
agentClimb: 0.4
86+
ledgeDropHeight: 0
87+
maxJumpAcrossDistance: 0
88+
accuratePlacement: 0
89+
minRegionArea: 2
90+
cellSize: 0.16666667
91+
manualCellSize: 0
92+
m_NavMeshData: {fileID: 0}
93+
--- !u!1 &1159842907
94+
GameObject:
95+
m_ObjectHideFlags: 0
96+
m_PrefabParentObject: {fileID: 0}
97+
m_PrefabInternal: {fileID: 0}
98+
serializedVersion: 4
99+
m_Component:
100+
- 4: {fileID: 1159842909}
101+
- 108: {fileID: 1159842908}
102+
m_Layer: 0
103+
m_Name: Directional Light
104+
m_TagString: Untagged
105+
m_Icon: {fileID: 0}
106+
m_NavMeshLayer: 0
107+
m_StaticEditorFlags: 0
108+
m_IsActive: 1
109+
--- !u!108 &1159842908
110+
Light:
111+
m_ObjectHideFlags: 0
112+
m_PrefabParentObject: {fileID: 0}
113+
m_PrefabInternal: {fileID: 0}
114+
m_GameObject: {fileID: 1159842907}
115+
m_Enabled: 1
116+
serializedVersion: 7
117+
m_Type: 1
118+
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
119+
m_Intensity: 1
120+
m_Range: 10
121+
m_SpotAngle: 30
122+
m_CookieSize: 10
123+
m_Shadows:
124+
m_Type: 2
125+
m_Resolution: -1
126+
m_CustomResolution: -1
127+
m_Strength: 1
128+
m_Bias: 0.05
129+
m_NormalBias: 0.4
130+
m_NearPlane: 0.2
131+
m_Cookie: {fileID: 0}
132+
m_DrawHalo: 0
133+
m_Flare: {fileID: 0}
134+
m_RenderMode: 0
135+
m_CullingMask:
136+
serializedVersion: 2
137+
m_Bits: 4294967295
138+
m_Lightmapping: 4
139+
m_AreaSize: {x: 1, y: 1}
140+
m_BounceIntensity: 1
141+
m_ShadowRadius: 0
142+
m_ShadowAngle: 0
143+
--- !u!4 &1159842909
144+
Transform:
145+
m_ObjectHideFlags: 0
146+
m_PrefabParentObject: {fileID: 0}
147+
m_PrefabInternal: {fileID: 0}
148+
m_GameObject: {fileID: 1159842907}
149+
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
150+
m_LocalPosition: {x: 0, y: 3, z: 0}
151+
m_LocalScale: {x: 1, y: 1, z: 1}
152+
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
153+
m_Children: []
154+
m_Father: {fileID: 0}
155+
m_RootOrder: 1
156+
--- !u!1 &1391086061
157+
GameObject:
158+
m_ObjectHideFlags: 0
159+
m_PrefabParentObject: {fileID: 0}
160+
m_PrefabInternal: {fileID: 0}
161+
serializedVersion: 4
162+
m_Component:
163+
- 4: {fileID: 1391086066}
164+
- 20: {fileID: 1391086065}
165+
- 92: {fileID: 1391086064}
166+
- 124: {fileID: 1391086063}
167+
- 81: {fileID: 1391086062}
168+
m_Layer: 0
169+
m_Name: Main Camera
170+
m_TagString: MainCamera
171+
m_Icon: {fileID: 0}
172+
m_NavMeshLayer: 0
173+
m_StaticEditorFlags: 0
174+
m_IsActive: 1
175+
--- !u!81 &1391086062
176+
AudioListener:
177+
m_ObjectHideFlags: 0
178+
m_PrefabParentObject: {fileID: 0}
179+
m_PrefabInternal: {fileID: 0}
180+
m_GameObject: {fileID: 1391086061}
181+
m_Enabled: 1
182+
--- !u!124 &1391086063
183+
Behaviour:
184+
m_ObjectHideFlags: 0
185+
m_PrefabParentObject: {fileID: 0}
186+
m_PrefabInternal: {fileID: 0}
187+
m_GameObject: {fileID: 1391086061}
188+
m_Enabled: 1
189+
--- !u!92 &1391086064
190+
Behaviour:
191+
m_ObjectHideFlags: 0
192+
m_PrefabParentObject: {fileID: 0}
193+
m_PrefabInternal: {fileID: 0}
194+
m_GameObject: {fileID: 1391086061}
195+
m_Enabled: 1
196+
--- !u!20 &1391086065
197+
Camera:
198+
m_ObjectHideFlags: 0
199+
m_PrefabParentObject: {fileID: 0}
200+
m_PrefabInternal: {fileID: 0}
201+
m_GameObject: {fileID: 1391086061}
202+
m_Enabled: 1
203+
serializedVersion: 2
204+
m_ClearFlags: 1
205+
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
206+
m_NormalizedViewPortRect:
207+
serializedVersion: 2
208+
x: 0
209+
y: 0
210+
width: 1
211+
height: 1
212+
near clip plane: 0.3
213+
far clip plane: 1000
214+
field of view: 60
215+
orthographic: 0
216+
orthographic size: 5
217+
m_Depth: -1
218+
m_CullingMask:
219+
serializedVersion: 2
220+
m_Bits: 4294967295
221+
m_RenderingPath: -1
222+
m_TargetTexture: {fileID: 0}
223+
m_TargetDisplay: 0
224+
m_TargetEye: 3
225+
m_HDR: 0
226+
m_OcclusionCulling: 1
227+
m_StereoConvergence: 10
228+
m_StereoSeparation: 0.022
229+
m_StereoMirrorMode: 0
230+
--- !u!4 &1391086066
231+
Transform:
232+
m_ObjectHideFlags: 0
233+
m_PrefabParentObject: {fileID: 0}
234+
m_PrefabInternal: {fileID: 0}
235+
m_GameObject: {fileID: 1391086061}
236+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
237+
m_LocalPosition: {x: 0, y: 1, z: -10}
238+
m_LocalScale: {x: 1, y: 1, z: 1}
239+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
240+
m_Children: []
241+
m_Father: {fileID: 0}
242+
m_RootOrder: 0
243+
--- !u!1 &1646685149
244+
GameObject:
245+
m_ObjectHideFlags: 0
246+
m_PrefabParentObject: {fileID: 0}
247+
m_PrefabInternal: {fileID: 0}
248+
serializedVersion: 4
249+
m_Component:
250+
- 4: {fileID: 1646685151}
251+
- 114: {fileID: 1646685150}
252+
m_Layer: 0
253+
m_Name: ExampleStreaming
254+
m_TagString: Untagged
255+
m_Icon: {fileID: 0}
256+
m_NavMeshLayer: 0
257+
m_StaticEditorFlags: 0
258+
m_IsActive: 1
259+
--- !u!114 &1646685150
260+
MonoBehaviour:
261+
m_ObjectHideFlags: 0
262+
m_PrefabParentObject: {fileID: 0}
263+
m_PrefabInternal: {fileID: 0}
264+
m_GameObject: {fileID: 1646685149}
265+
m_Enabled: 1
266+
m_EditorHideFlags: 0
267+
m_Script: {fileID: 11500000, guid: 6c5299c1c838a8c44b49ecc9254704e0, type: 3}
268+
m_Name:
269+
m_EditorClassIdentifier:
270+
--- !u!4 &1646685151
271+
Transform:
272+
m_ObjectHideFlags: 0
273+
m_PrefabParentObject: {fileID: 0}
274+
m_PrefabInternal: {fileID: 0}
275+
m_GameObject: {fileID: 1646685149}
276+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
277+
m_LocalPosition: {x: 0, y: 0, z: 0}
278+
m_LocalScale: {x: 1, y: 1, z: 1}
279+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
280+
m_Children: []
281+
m_Father: {fileID: 0}
282+
m_RootOrder: 2

Examples/ServiceExamples/ExampleStreaming.unity.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/ServiceExamples/Scripts/ExampleAlchemyDataNews.cs

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,31 @@
1616
*/
1717

1818
using UnityEngine;
19-
using System.Collections;
2019
using System.Collections.Generic;
2120
using IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1;
2221
using IBM.Watson.DeveloperCloud.Logging;
2322
using System;
2423

25-
public class ExampleAlchemyDataNews : MonoBehaviour {
26-
private AlchemyAPI m_AlchemyAPI = new AlchemyAPI();
27-
28-
void Start () {
29-
LogSystem.InstallDefaultReactors();
24+
public class ExampleAlchemyDataNews : MonoBehaviour
25+
{
26+
private AlchemyAPI m_AlchemyAPI = new AlchemyAPI();
3027

31-
string[] returnFields = {Fields.ENRICHED_URL_ENTITIES, Fields.ENRICHED_URL_KEYWORDS};
32-
Dictionary<string, string> queryFields = new Dictionary<string, string>();
33-
queryFields.Add(Fields.ENRICHED_URL_RELATIONS_RELATION_SUBJECT_TEXT, "Obama");
34-
queryFields.Add(Fields.ENRICHED_URL_CLEANEDTITLE, "Washington");
28+
void Start()
29+
{
30+
LogSystem.InstallDefaultReactors();
3531

36-
if (!m_AlchemyAPI.GetNews(OnGetNews, returnFields, queryFields))
37-
Log.Debug("ExampleAlchemyData", "Failed to get news!");
38-
}
32+
string[] returnFields = { Fields.ENRICHED_URL_ENTITIES, Fields.ENRICHED_URL_KEYWORDS };
33+
Dictionary<string, string> queryFields = new Dictionary<string, string>();
34+
queryFields.Add(Fields.ENRICHED_URL_RELATIONS_RELATION_SUBJECT_TEXT, "Obama");
35+
queryFields.Add(Fields.ENRICHED_URL_CLEANEDTITLE, "Washington");
3936

40-
private void OnGetNews(NewsResponse newsData, string data)
41-
{
42-
if(newsData != null)
43-
Log.Debug("ExampleAlchemyData", "status: {0}", newsData.status);
44-
}
37+
if (!m_AlchemyAPI.GetNews(OnGetNews, returnFields, queryFields))
38+
Log.Debug("ExampleAlchemyData", "Failed to get news!");
39+
}
40+
41+
private void OnGetNews(NewsResponse newsData, string data)
42+
{
43+
if (newsData != null)
44+
Log.Debug("ExampleAlchemyData", "status: {0}", newsData.status);
45+
}
4546
}

0 commit comments

Comments
 (0)