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); }
public void BlendShapeTreeToolbarGUI() { EditorGUI.BeginChangeCheck(); var m = (BlendShapeMode)GUILayout.Toolbar((int)blendShapeMode, BlendShapeModeString, EditorStyles.miniButton); if (EditorGUI.EndChangeCheck()) { blendShapeMode = m; blendShapeSetIconUpdate = true; } }
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; }
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))); }