Property | Type | Description | |
---|---|---|---|
instance | |||
stb_animation_list | |||
stb_animation_type | |||
stb_cap_list | |||
stb_hair_list | |||
stb_weapon_list | |||
weapon_type_lookup | WeaponType>.Dictionary | ||
zmd_female | |||
zmd_male | |||
zsc_arms_female | |||
zsc_arms_male | |||
zsc_back | |||
zsc_body_female | |||
zsc_body_male | |||
zsc_cap_female | |||
zsc_cap_male | |||
zsc_faceItem | |||
zsc_face_female | |||
zsc_face_male | |||
zsc_foot_female | |||
zsc_foot_male | |||
zsc_hair_female | |||
zsc_hair_male | |||
zsc_subweapon | |||
zsc_weapon |
Method | Description | |
---|---|---|
GenerateAnimationAsset ( GenderType gender, RigType rig, String>.Dictionary |
||
GenerateAnimationAsset ( GenderType gender, WeaponType weapon ) : void |
Generate an animation prefab for the given gender and weapon
|
|
GenerateAnimationAssets ( ) : void |
Loop through all weapon types for each gender and create an animation asset and all associated clips The animations and clips are placed in GameData/Animation
|
|
GetZMOPath ( WeaponType WeaponType, ActionType Action, GenderType Gender ) : string |
Get Animation ZMO File path
|
|
LoadAnimations ( |
Loads all animations for equiped weapon type. Used only in editor to generate prefabs
|
|
LoadClips ( |
||
LoadClips ( |
Loads all animations for given weapon type and gender. The clips are saved to Animation/{gender}/{weapon}/clips/{action}.anim Used only in editor to generate prefabs
|
|
cachedLoad ( string path ) : object |
Checks the cache to see if the resource has already been loaded recently If found, returns the cached resource from memory (fast) If not found, loads the resource from file (slow) and caches the resource
|
|
getWeaponType ( int weaponID ) : WeaponType | ||
getZSC ( GenderType gender, BodyPartType bodyPart ) : |
Get the ZSC object associated with the given gender and bodyPart
|
|
loadBindPoses ( |
Load bindposes and bones matrices from resources scriptable object
|
|
loadResource ( string path ) : object |
Load a Rose Asset from text asset resource file to memory. Not cached.
|
|
loadSkeleton ( GenderType gender, RigType rig ) : |
||
loadSkeleton ( GenderType gender, WeaponType weapon ) : |
Load a skeleton game object from resources prefab
|
|
unloadResource ( UnityEngine resource ) : void |
Method | Description | |
---|---|---|
ResourceManager ( ) : UnityEditor | ||
getBoneNames ( |
public GenerateAnimationAsset ( GenderType gender, RigType rig, String>.Dictionary |
||
gender | GenderType | |
rig | RigType | |
zmoPaths | String>.Dictionary | |
return | void |
public GenerateAnimationAsset ( GenderType gender, WeaponType weapon ) : void | ||
gender | GenderType | |
weapon | WeaponType | |
return | void |
public GetZMOPath ( WeaponType WeaponType, ActionType Action, GenderType Gender ) : string | ||
WeaponType | WeaponType | Equiped Weapon |
Action | ActionType | |
Gender | GenderType | Player Gender |
return | string |
public LoadAnimations ( |
||
player | ||
skeleton | ||
weapon | WeaponType | |
gender | GenderType | |
return | void |
public LoadClips ( |
||
skeleton | ||
zmd | ||
gender | GenderType | |
rig | RigType | |
zmoPaths | String>.Dictionary | |
return | void |
public LoadClips ( |
||
skeleton | ||
zmd | ||
weapon | WeaponType | |
gender | GenderType | |
return | void |
public getWeaponType ( int weaponID ) : WeaponType | ||
weaponID | int | |
return | WeaponType |
public getZSC ( GenderType gender, BodyPartType bodyPart ) : |
||
gender | GenderType | |
bodyPart | BodyPartType | |
return |
public loadBindPoses ( |
||
skeleton | ||
gender | GenderType | |
weapon | WeaponType | |
return |
public loadSkeleton ( GenderType gender, RigType rig ) : |
||
gender | GenderType | |
rig | RigType | |
return |
public loadSkeleton ( GenderType gender, WeaponType weapon ) : |
||
gender | GenderType | |
weapon | WeaponType | |
return |
public unloadResource ( UnityEngine resource ) : void | ||
resource | UnityEngine | |
return | void |
public static ResourceManager,UnityRose instance | ||
return |
public STB,UnityRose.Formats stb_animation_list | ||
return |
public STB,UnityRose.Formats stb_animation_type | ||
return |
public STB,UnityRose.Formats stb_cap_list | ||
return |
public STB,UnityRose.Formats stb_hair_list | ||
return |
public STB,UnityRose.Formats stb_weapon_list | ||
return |
public static Dictionary |
||
return | WeaponType>.Dictionary |
public ZSC,UnityRose.Formats zsc_arms_female | ||
return |
public ZSC,UnityRose.Formats zsc_arms_male | ||
return |
public ZSC,UnityRose.Formats zsc_body_female | ||
return |
public ZSC,UnityRose.Formats zsc_body_male | ||
return |
public ZSC,UnityRose.Formats zsc_cap_female | ||
return |
public ZSC,UnityRose.Formats zsc_cap_male | ||
return |
public ZSC,UnityRose.Formats zsc_faceItem | ||
return |
public ZSC,UnityRose.Formats zsc_face_female | ||
return |
public ZSC,UnityRose.Formats zsc_face_male | ||
return |
public ZSC,UnityRose.Formats zsc_foot_female | ||
return |
public ZSC,UnityRose.Formats zsc_foot_male | ||
return |
public ZSC,UnityRose.Formats zsc_hair_female | ||
return |
public ZSC,UnityRose.Formats zsc_hair_male | ||
return |
public ZSC,UnityRose.Formats zsc_subweapon | ||
return |