Summary
You're free to reuse this script for models that aren't produced by S.F. Bay Studios, Inc / InfinityPBR.com
Please, if you do so, mention us at some point -- that'd be nice of you :)
This script, attached to an object with properly named blend shapes, will make it easy for users to modify
the shapes both in the editor and during run time.
graph BT
Type-->Base0["MonoBehaviour"]
Type["SFB_BlendShapesManager"]
class Type type-node
Syntax
[Serializable]
public class SFB_BlendShapesManager : MonoBehaviour
Attributes
Type |
Description |
SerializableAttribute |
|
Fields
Methods
Name |
Value |
Summary |
AddMatchToNamedShape(string, string, int, int) |
void |
|
AddObject(Mesh, SkinnedMeshRenderer) |
void |
|
AddToInspectorObjects(int, int, int) |
int |
|
CheckMatch(int, Mesh, SkinnedMeshRenderer, string, int, int) |
void |
|
DisplayThisBlendshape(string) |
bool |
|
FindMatches(string, int, int, int) |
void |
|
GetHumanName(string) |
string |
|
GetHumanNameMatch(string) |
string |
|
GetMinusShapeID(string) |
int |
|
GetMinusShapeObject(string) |
int |
|
GetObjectID(SFB_BlendShapesManager.SFB_BlendShapeObject) |
int |
|
MatchedBlendShapes(Mesh) |
int |
|
MatchThisBlendshape(string) |
bool |
|
RandomizeAll() |
void |
|
ReloadBlendShapes() |
void |
|
ResetAllObjects(SFB_BlendShapesManager.SFB_BlendShapeObject) |
void |
|
SetSelectedShape(int) |
void |
|
SetValue(int, int, int, float) |
void |
|
SetValueUI(float) |
void |
|
SFB_BS_ExportPreset() |
void |
This is for editor use only. To save players desired settings, best to use playerprefs or some other saving method.
|
SFB_BS_ExportRanges() |
void |
This is for editor use only. To save players desired settings, best to use playerprefs or some other saving method.
|
SFB_BS_GetNewFileNumber(string, string) |
int |
|
SFB_BS_ImportPresetFile(TextAsset) |
void |
|
SFB_BS_LoadRanges(TextAsset) |
void |
|
SFB_BS_RemovePreset(int) |
void |
|
SFB_BS_ResetAll() |
void |
|
SFB_BS_SetRandom(SFB_BlendShapesManager.SFB_BlendShape) |
void |
|
SFB_BS_ShowWireframe(bool) |
void |
|
SFB_BS_TogglePresets(bool) |
void |
|
SFB_BS_TogglePresetsValue(int, int) |
void |
|
SFB_BS_ToggleRange(int) |
void |
|
VisibleBlendShapes(Mesh) |
int |
|