コード例 #1
0
 public LayerForExpressionsView(FeatureToggles featuresToggles,
                                AnimatorGenerator animatorGenerator,
                                AvatarMask expressionsAvatarMask,
                                AnimationClip emptyClip,
                                string activityStageName,
                                ConflictPrevention conflictPrevention,
                                AssetContainer assetContainer,
                                ConflictFxLayerMode compilerConflictFxLayerMode,
                                AnimationClip compilerIgnoreParamList,
                                AnimationClip compilerFallbackParamList,
                                List <CurveKey> blinkBlendshapes,
                                AnimatorController animatorController,
                                List <GestureComboStageMapper> comboLayers,
                                bool useGestureWeightCorrection,
                                bool useSmoothing,
                                List <ManifestBinding> manifestBindings,
                                string animInfix)
 {
     _featuresToggles             = featuresToggles;
     _animatorGenerator           = animatorGenerator;
     _expressionsAvatarMask       = expressionsAvatarMask;
     _emptyClip                   = emptyClip;
     _activityStageName           = activityStageName;
     _conflictPrevention          = conflictPrevention;
     _assetContainer              = assetContainer;
     _compilerConflictFxLayerMode = compilerConflictFxLayerMode;
     _compilerIgnoreParamList     = compilerIgnoreParamList;
     _compilerFallbackParamList   = compilerFallbackParamList;
     _blinkBlendshapes            = blinkBlendshapes;
     _animatorController          = animatorController;
     _comboLayers                 = comboLayers;
     _useGestureWeightCorrection  = useGestureWeightCorrection;
     _useSmoothing                = useSmoothing;
     _manifestBindings            = manifestBindings;
     _animInfix                   = animInfix;
 }
コード例 #2
0
 private static void CreateOrReplaceWeightCorrection(AvatarMask weightCorrectionAvatarMask, AnimatorGenerator animatorGenerator, AnimatorController animatorController, ConflictPrevention conflictPrevention)
 {
     SharedLayerUtils.CreateParamIfNotExists(animatorController, "GestureLeft", AnimatorControllerParameterType.Int);
     SharedLayerUtils.CreateParamIfNotExists(animatorController, "GestureRight", AnimatorControllerParameterType.Int);
     SharedLayerUtils.CreateParamIfNotExists(animatorController, "GestureLeftWeight", AnimatorControllerParameterType.Float);
     SharedLayerUtils.CreateParamIfNotExists(animatorController, "GestureRightWeight", AnimatorControllerParameterType.Float);
     SharedLayerUtils.CreateParamIfNotExists(animatorController, SharedLayerUtils.HaiGestureComboLeftWeightProxy, AnimatorControllerParameterType.Float);
     SharedLayerUtils.CreateParamIfNotExists(animatorController, SharedLayerUtils.HaiGestureComboRightWeightProxy, AnimatorControllerParameterType.Float);
     new LayerForWeightCorrection(animatorGenerator, weightCorrectionAvatarMask, conflictPrevention.ShouldWriteDefaults).Create();
 }
コード例 #3
0
 private static void CreateOrReplaceSmoothing(AvatarMask weightCorrectionAvatarMask, AnimatorGenerator animatorGenerator, AnimatorController animatorController, ConflictPrevention conflictPrevention)
 {
     SharedLayerUtils.CreateParamIfNotExists(animatorController, SharedLayerUtils.HaiGestureComboLeftWeightSmoothing, AnimatorControllerParameterType.Float);
     SharedLayerUtils.CreateParamIfNotExists(animatorController, SharedLayerUtils.HaiGestureComboRightWeightSmoothing, AnimatorControllerParameterType.Float);
     SharedLayerUtils.CreateParamIfNotExists(animatorController, SharedLayerUtils.HaiGestureComboSmoothingFactor, AnimatorControllerParameterType.Float);
     new LayerForAnalogFistSmoothing(animatorGenerator, weightCorrectionAvatarMask, conflictPrevention.ShouldWriteDefaults, animatorController).Create();
 }