Here's a quick video to demonstrate some of the new features we're working on for the upcoming 1.1 release. This example is using the event parameter passed in the custom shape event to iterate through the list of available custom shapes. The Console shows these parameter details and parameter details contained in the RandomEyes look event parameter. The events and event recipients are controlled independently for maximum flexibility.
A code example that demonstrates catching the events and reading parameter properties:
void RandomEyes_OnLookStatusChanged(RandomEyesLookStatus randomEyesStatus)
{
Debug.Log("RandomEyes Look Event: " +
"lookPosition=" + randomEyesStatus.lookPosition.ToString() + ", " +
"blendSpeed=" + randomEyesStatus.blendSpeed + ", " +
"rangeOfMotion=" + randomEyesStatus.rangeOfMotion);
}
void RandomEyes_OnCustomShapeChanged(RandomEyesCustomShape customShape)
{
Debug.Log("RandomEyes Custom Shape: " +
"index=" + customShape.shapeIndex + ", " +
"shape=" + customShape.shapeName + ", " +
"overrideOn=" + customShape.overrideOn + ", " +
"isOn=" + customShape.isOn + ", " +
"blendSpeed=" + customShape.blendSpeed + ", " +
"rangeOfMotion=" + customShape.rangeOfMotion);
}
Comments: No comments yet