Cerebrum™
|
Public Member Functions | |
void | SetMaterial (int materialID) |
void | ClearHair () |
void | SetHair (int hairID) |
void | SetTexture (int textureID) |
void | SetNormalMap (int nmID, float nmVal) |
void | SetHeight (float scale) |
void | SetBlendShapeFeatures (int index, float amount) |
void | SetEyeCorner (float amount) |
void | SetWeightBlendShape (int weight, float amount) |
void | SetDroop (bool droop=false, float left=0f, float right=0f) |
void | RandomTraits () |
override bool | HandleMessage (string msg, string param, out string retString) |
Handles messages sent to this game object from current MyGameManager. | |
override bool | HandleMessage (string msg, string param, out string retString) |
Handles messages sent to this game object from current MyGameManager. | |
Public Attributes | |
bool | trackTime = false |
bool | isEmpty |
bool | isEWS |
Material[] | consentPages |
int | pageNumber = 0 |
int[] | numStageItems = { 0, 13, 9, 8, 2, 12, 15, 16 } |
GameObject[] | hairList |
SkinnedMeshRenderer | faceSkinnedMeshRenderer |
SkinnedMeshRenderer | bodySkinnedMeshRenderer |
Material[] | headMaterialList |
Material[] | bodyMaterialList |
int | materialSelect = 0 |
Transform | rootBone |
float | rootScale = 1.0f |
int | hairSelect = 0 |
Texture[] | textureList |
Texture[] | textureListBody |
int | textureSelect = 0 |
Texture[] | normalMapList |
int | normalMapSelect = 0 |
float | normalMapValue = 1f |
int | faceBlendShapeSelect = 0 |
float | faceBlendShapeAmount = 0 |
int | faceMin = 53 |
int | faceMax = 55 |
float | cornerEyeAmount = 0 |
float | weightBlendShape = 0 |
int | weight = 0 |
bool | droop = false |
float | droopLeftAmount = 0 |
float | droopRightAmount = 0 |
Material | headMaterial = null |
Material | bodyMaterial = null |
bool | eyesOpen = true |
Protected Member Functions | |
override void | Start () |
override void | Awake () |
whether object has animator with "Speed" parameter | |
override void | Update () |
Human animation functions. | |
override void | Start () |
override void | Awake () |
whether object has animator with "Speed" parameter | |
override void | Update () |
Additional Inherited Members | |
Public Types inherited from Cerebrum.OMHHuman | |
enum | IKType { None = 0 , LeftHand = 1 , RightHand = 2 , Head = 4 } |
Human animation functions. More... | |
|
protectedvirtual |
whether object has animator with "Speed" parameter
Reimplemented from Cerebrum.OMHHuman.
void Cerebrum.OMHPatient.ClearHair | ( | ) |
|
virtual |
Handles messages sent to this game object from current MyGameManager.
IK Commands
follow AIM_OBJECT [TAGET_OBJECT | TARGET_OBJECT_TAG]
Follows the object TARGET_OBJECT or the object with tag TARGET_OBJECT_TAG.
TARGET_OBJECT | obect to move towards |
TARGET_OBJECT_TAG | tag of obect to move towards |
Examples:
SwitchToScene SCENE_NAME
Switches to SCENE_NAME parameter
SCENE_NAME | scene to switch to |
Examples:
Clickable objects and buttons
Clickable.ResetPressed
Resets clicked-on flag "pressed" to false
Examples:
Clickable.Reset
Resets clicked-on flags "pressed" to false and "clickable" to true
Examples:
Clickable.IsPressed
Checks whether object was clicked on (clicked-on flag "pressed" set)
Examples:
Clickable.On [ true | false ]
Checks whether object was clicked on (clicked-on flag set)
true | or 1 for on, false or 0 for off. Omitted parameter is on. |
Examples:
Audio commands
MOVETO message sets camera position and rotation. moveto/align/orient targetObject [duration]
LOOKAT message sets camera position and rotation. lookAt targetObject offset lookAt targetObject viewerObject(for position) lookAt targetObject ("close", "medium", or "far"(using CameraTargetParams data))
Menu.on - turn object's menu on
Menu.question - set menu's question
Menu.choices CHOICE_STRINGS - set multiple-choice choices
Menu.done - true when choice has been made
Menu.result MATCH_STRING - bool containing whether choice matches MATCH_STRING
Menu.choice - string containing the choice that user made
Switches to SCENE_NAME parameter
CHOICE_STRINGS | choices separated by space or comma. If choice has a space or commad, enclose in single quotes. |
MATCH_STRING | string exactly matching one of the choices |
Examples:
Reimplemented from Cerebrum.OMHHuman.
void Cerebrum.OMHPatient.RandomTraits | ( | ) |
void Cerebrum.OMHPatient.SetBlendShapeFeatures | ( | int | index, |
float | amount | ||
) |
void Cerebrum.OMHPatient.SetDroop | ( | bool | droop = false , |
float | left = 0f , |
||
float | right = 0f |
||
) |
void Cerebrum.OMHPatient.SetEyeCorner | ( | float | amount | ) |
void Cerebrum.OMHPatient.SetHair | ( | int | hairID | ) |
void Cerebrum.OMHPatient.SetHeight | ( | float | scale | ) |
void Cerebrum.OMHPatient.SetMaterial | ( | int | materialID | ) |
void Cerebrum.OMHPatient.SetNormalMap | ( | int | nmID, |
float | nmVal | ||
) |
void Cerebrum.OMHPatient.SetTexture | ( | int | textureID | ) |
void Cerebrum.OMHPatient.SetWeightBlendShape | ( | int | weight, |
float | amount | ||
) |
|
protectedvirtual |
Start is called before the first frame update This starts the message handler
Reimplemented from Cerebrum.OMHHuman.
|
protectedvirtual |
Human animation functions.
Reimplemented from Cerebrum.OMHHuman.
Material Cerebrum.OMHPatient.bodyMaterial = null |
Material [] Cerebrum.OMHPatient.bodyMaterialList |
SkinnedMeshRenderer Cerebrum.OMHPatient.bodySkinnedMeshRenderer |
Material [] Cerebrum.OMHPatient.consentPages |
float Cerebrum.OMHPatient.cornerEyeAmount = 0 |
bool Cerebrum.OMHPatient.droop = false |
float Cerebrum.OMHPatient.droopLeftAmount = 0 |
float Cerebrum.OMHPatient.droopRightAmount = 0 |
bool Cerebrum.OMHPatient.eyesOpen = true |
float Cerebrum.OMHPatient.faceBlendShapeAmount = 0 |
int Cerebrum.OMHPatient.faceBlendShapeSelect = 0 |
int Cerebrum.OMHPatient.faceMax = 55 |
int Cerebrum.OMHPatient.faceMin = 53 |
SkinnedMeshRenderer Cerebrum.OMHPatient.faceSkinnedMeshRenderer |
GameObject [] Cerebrum.OMHPatient.hairList |
int Cerebrum.OMHPatient.hairSelect = 0 |
Material Cerebrum.OMHPatient.headMaterial = null |
Material [] Cerebrum.OMHPatient.headMaterialList |
bool Cerebrum.OMHPatient.isEmpty |
bool Cerebrum.OMHPatient.isEWS |
int Cerebrum.OMHPatient.materialSelect = 0 |
Texture [] Cerebrum.OMHPatient.normalMapList |
int Cerebrum.OMHPatient.normalMapSelect = 0 |
float Cerebrum.OMHPatient.normalMapValue = 1f |
int [] Cerebrum.OMHPatient.numStageItems = { 0, 13, 9, 8, 2, 12, 15, 16 } |
int Cerebrum.OMHPatient.pageNumber = 0 |
Transform Cerebrum.OMHPatient.rootBone |
float Cerebrum.OMHPatient.rootScale = 1.0f |
Texture [] Cerebrum.OMHPatient.textureList |
Texture [] Cerebrum.OMHPatient.textureListBody |
int Cerebrum.OMHPatient.textureSelect = 0 |
bool Cerebrum.OMHPatient.trackTime = false |
int Cerebrum.OMHPatient.weight = 0 |
float Cerebrum.OMHPatient.weightBlendShape = 0 |