API reference

ColorChanger Class

Extends MonoBehaviour

Methods

UpdateColor ( commandResult )
Directly processes a command result getting the slots with WitResult utilities
Signature
void Meta.Voice.Samples.Shapes.ColorChanger.UpdateColor(WitResponseNode commandResult)
Parameters
commandResult: WitResponseNode  Result data from Wit.ai activation to be processed
Returns
void
UpdateColor ( colorNames , shapes )
Updates the colors of a set of shape, or all colors split across the shapes
Signature
void Meta.Voice.Samples.Shapes.ColorChanger.UpdateColor(string[] colorNames, string[] shapes)
Parameters
colorNames: string []  The names of the colors to be processed
shapes: string []  The shape names or if empty all shapes
Returns
void
UpdateColorAllShapes ( colorNames )
Updates the colors of the shapes, with colours split across the shapes
Signature
void Meta.Voice.Samples.Shapes.ColorChanger.UpdateColorAllShapes(string[] colorNames)
Parameters
colorNames: string []  The names of the colors to be processed
Returns
void