Exemplo n.º 1
0
 public void LoadEditorPref()
 {
     blendShapeMode              = (BlendShapeMode)EditorPrefs.GetInt("VeryAnimation_BlendShapeMode", 0);
     blendShapeMirrorName        = EditorPrefs.GetBool("VeryAnimation_Control_BlendShapeMirrorName", false);
     blendShapeSetIconShowName   = EditorPrefs.GetBool("VeryAnimation_Control_BlendShapeSetIconShowName", true);
     blendShapeSetIconSize       = EditorPrefs.GetFloat("VeryAnimation_Control_BlendShapeSetIconSize", 100f);
     blendShapeSetIconCameraMode = (IconCameraMode)EditorPrefs.GetInt("VeryAnimation_BlendShapeSetIconCameraMode", 0);
 }
Exemplo n.º 2
0
        public void BlendShapeTreeToolbarGUI()
        {
            EditorGUI.BeginChangeCheck();
            var m = (BlendShapeMode)GUILayout.Toolbar((int)blendShapeMode, BlendShapeModeString, EditorStyles.miniButton);

            if (EditorGUI.EndChangeCheck())
            {
                blendShapeMode          = m;
                blendShapeSetIconUpdate = true;
            }
        }
Exemplo n.º 3
0
 public MeshSurface(
     string key,
     PrimitiveType primitiveType,
     IMeshData <Vertex> data,
     IEnumerable <IMeshData <MorphableVertex> > blendShapes,
     BlendShapeMode blendShapeMode,
     Option <Material> material)
 {
     Key            = key;
     PrimitiveType  = primitiveType;
     Data           = data;
     BlendShapes    = blendShapes;
     BlendShapeMode = blendShapeMode;
     Material       = material;
 }
Exemplo n.º 4
0
        public ArrayMeshSurface(ArrayMesh mesh, int index)
        {
            Ensure.That(mesh, nameof(mesh)).IsNotNull();
            Ensure.That(index, nameof(index)).IsGte(0);

            Mesh  = mesh;
            Index = index;

            Key            = mesh.SurfaceGetName(index);
            FormatMask     = Mesh.SurfaceGetFormat(index);
            PrimitiveType  = Mesh.SurfaceGetPrimitiveType(Index);
            BlendShapeMode = Mesh.BlendShapeMode;

            _material = memo(() => Optional(Mesh.SurfaceGetMaterial(index)));
        }