Exemplo n.º 1
0
        public void OnUMACreated(UMAData data)
        {
            expressionPlayer = data.gameObject.GetComponent <UMAExpressionPlayer>();
            if (expressionPlayer == null)
            {
                expressionPlayer = data.gameObject.AddComponent <UMAExpressionPlayer>();
            }
            UMAExpressionSet expressionSet = data.umaRecipe.raceData.expressionSet;

            expressionPlayer.expressionSet = expressionSet;
            expressionPlayer.umaData       = data;
            expressionPlayer.Initialize();
        }
Exemplo n.º 2
0
    //practical guide to UMA part 15 intercepting uma events https://youtu.be/_k-SZRCvgIk?t=4m17s
    void CharacterCreatedCallback(UMAData umaData)
    {
        //Debug.Log("UMA_Created");
        GrabStaff();

        // A Practical Guide To UMA - Part 17 - Using the Expression Player  https://youtu.be/nJI-kUYYuWE
        UMAExpressionSet expressionSet = umaData.umaRecipe.raceData.expressionSet;

        expressionPlayer = umaData.gameObject.AddComponent <UMAExpressionPlayer>();
        expressionPlayer.expressionSet = expressionSet;
        expressionPlayer.umaData       = umaData;
        expressionPlayer.Initialize();
        // automated expressions to look life like
        expressionPlayer.enableBlinking = true;
        expressionPlayer.enableSaccades = true;
    }