API reference
API reference
Select your platform
No SDKs available
No versions available

ColorChanger Class

Meta::Voice::Samples::Shapes::ColorChanger extends MonoBehaviour.

Overview

Public Member Functions

void
UpdateColor
( WitResponseNode commandResult )
Directly processes a command result getting the slots with WitResult utilities
void
UpdateColor
( string [] colorNames,
string [] shapes )
Updates the colors of a set of shape, or all colors split across the shapes
void
UpdateColorAllShapes
( string [] colorNames )
Updates the colors of the shapes, with colours split across the shapes

Details

Member Functions

void Meta.Voice.Samples.Shapes.ColorChanger.UpdateColor
( WitResponseNode commandResult )
Directly processes a command result getting the slots with WitResult utilities
Parameters
commandResult
Result data from Wit.ai activation to be processed
void Meta.Voice.Samples.Shapes.ColorChanger.UpdateColor
( string [] colorNames,
string [] shapes )
Updates the colors of a set of shape, or all colors split across the shapes
Parameters
colorNames
The names of the colors to be processed
shapes
The shape names or if empty all shapes
void Meta.Voice.Samples.Shapes.ColorChanger.UpdateColorAllShapes
( string [] colorNames )
Updates the colors of the shapes, with colours split across the shapes
Parameters
colorNames
The names of the colors to be processed
Did you find this page helpful?
Thumbs up icon
Thumbs down icon