├── .gitignore ├── README.md ├── skill-editor.png └── u3d ├── Assets ├── Model.meta ├── Model │ ├── bot.meta │ ├── bot │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── Siege_Bot.mat │ │ │ └── Siege_Bot.mat.meta │ │ ├── f_Siege_Bot_01.FBX │ │ └── f_Siege_Bot_01.FBX.meta │ ├── caocao.meta │ ├── caocao │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── effect_caocao_standby_4_1.mat │ │ │ ├── effect_caocao_standby_4_1.mat.meta │ │ │ ├── effect_caocao_standby_4_2.mat │ │ │ ├── effect_caocao_standby_4_2.mat.meta │ │ │ ├── f_caocao_4.mat │ │ │ ├── f_caocao_4.mat.meta │ │ │ ├── t_caocao_4_1.mat │ │ │ ├── t_caocao_4_1.mat.meta │ │ │ ├── t_caocao_4_2.mat │ │ │ ├── t_caocao_4_2.mat.meta │ │ │ ├── w_caocao_4.mat │ │ │ └── w_caocao_4.mat.meta │ │ ├── caocao_4.FBX │ │ ├── caocao_4.FBX.meta │ │ ├── caocao_4.prefab │ │ ├── caocao_4.prefab.meta │ │ ├── texture.meta │ │ └── texture │ │ │ ├── effect_caocao_standby_4_1.png │ │ │ ├── effect_caocao_standby_4_1.png.meta │ │ │ ├── effect_caocao_standby_4_2.png │ │ │ ├── effect_caocao_standby_4_2.png.meta │ │ │ ├── effect_caocao_standby_4_2_ad.png │ │ │ ├── effect_caocao_standby_4_2_ad.png.meta │ │ │ ├── effect_caocao_standby_4_2_ad_2.png │ │ │ ├── effect_caocao_standby_4_2_ad_2.png.meta │ │ │ ├── f_caocao_4.png │ │ │ ├── f_caocao_4.png.meta │ │ │ ├── t_caocao_4_1.png │ │ │ ├── t_caocao_4_1.png.meta │ │ │ ├── t_caocao_4_2.png │ │ │ ├── t_caocao_4_2.png.meta │ │ │ ├── w_caocao_4.png │ │ │ └── w_caocao_4.png.meta │ ├── heavyrobort.meta │ ├── heavyrobort │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── heavyrobort-0701.mat │ │ │ └── heavyrobort-0701.mat.meta │ │ ├── f_Heavyrobort_01.FBX │ │ ├── f_Heavyrobort_01.FBX.meta │ │ ├── f_Heavyrobort_01.prefab │ │ ├── f_Heavyrobort_01.prefab.meta │ │ ├── texture.meta │ │ └── texture │ │ │ ├── heavyrobort.tga │ │ │ └── heavyrobort.tga.meta │ ├── sparta.meta │ └── sparta │ │ ├── Animation.meta │ │ ├── Animation │ │ ├── CF.anim │ │ ├── CF.anim.meta │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── 02 - Default.mat │ │ │ └── 02 - Default.mat.meta │ │ ├── atk1.anim │ │ ├── atk1.anim.meta │ │ ├── atk2.anim │ │ ├── atk2.anim.meta │ │ ├── atk3.anim │ │ ├── atk3.anim.meta │ │ ├── die.anim │ │ ├── die.anim.meta │ │ ├── hurt.anim │ │ ├── hurt.anim.meta │ │ ├── idle.anim │ │ ├── idle.anim.meta │ │ ├── jifei.anim │ │ ├── jifei.anim.meta │ │ ├── jitui.anim │ │ ├── jitui.anim.meta │ │ ├── move.anim │ │ ├── move.anim.meta │ │ ├── sparta.FBX │ │ ├── sparta.FBX.meta │ │ ├── sprint.anim │ │ └── sprint.anim.meta │ │ ├── Materials.meta │ │ ├── Materials │ │ ├── nzj_02.mat │ │ ├── nzj_02.mat.meta │ │ ├── nzj_wuqi.mat │ │ └── nzj_wuqi.mat.meta │ │ ├── sparta.FBX │ │ ├── sparta.FBX.meta │ │ ├── sparta.prefab │ │ ├── sparta.prefab.meta │ │ ├── texture.meta │ │ └── texture │ │ ├── nzj_02.tga │ │ ├── nzj_02.tga.meta │ │ ├── nzj_02no.tga │ │ ├── nzj_02no.tga.meta │ │ ├── nzj_wuqi.tga │ │ └── nzj_wuqi.tga.meta ├── Resources.meta ├── Resources │ ├── Effect.meta │ └── Effect │ │ ├── effect-particle.prefab │ │ └── effect-particle.prefab.meta ├── Scripts.meta ├── Scripts │ ├── Action.meta │ ├── Action │ │ ├── ActionCustomObject.cs │ │ ├── ActionCustomObject.cs.meta │ │ ├── ActionExcute.cs │ │ ├── ActionExcute.cs.meta │ │ ├── ActionExcuteManager.cs │ │ ├── ActionExcuteManager.cs.meta │ │ ├── ActionFactory.cs │ │ ├── ActionFactory.cs.meta │ │ ├── ActionObject.cs │ │ ├── ActionObject.cs.meta │ │ ├── ActionObject_Event.cs │ │ ├── ActionObject_Event.cs.meta │ │ ├── ActionTable.cs │ │ ├── ActionTable.cs.meta │ │ ├── EffectController.cs │ │ ├── EffectController.cs.meta │ │ ├── EffectManager.cs │ │ ├── EffectManager.cs.meta │ │ ├── Event.meta │ │ ├── Event │ │ │ ├── ActionEvent.cs │ │ │ ├── ActionEvent.cs.meta │ │ │ ├── ActionEvent_Animation.cs │ │ │ ├── ActionEvent_Animation.cs.meta │ │ │ ├── ActionEvent_Camera.cs │ │ │ ├── ActionEvent_Camera.cs.meta │ │ │ ├── ActionEvent_CharacterControl.cs │ │ │ ├── ActionEvent_CharacterControl.cs.meta │ │ │ ├── ActionEvent_Prefab.cs │ │ │ ├── ActionEvent_Prefab.cs.meta │ │ │ ├── ActionEvent_Sound.cs │ │ │ └── ActionEvent_Sound.cs.meta │ │ ├── HitController.cs │ │ ├── HitController.cs.meta │ │ ├── ICustomObject.cs │ │ └── ICustomObject.cs.meta │ ├── Editor.meta │ ├── Editor │ │ ├── ActionEditPanel.cs │ │ ├── ActionEditPanel.cs.meta │ │ ├── CharacterEffectEditor.unity │ │ ├── CharacterEffectEditor.unity.meta │ │ ├── MyWindow.cs │ │ └── MyWindow.cs.meta │ ├── TempSkillEditorCamera.cs │ ├── TempSkillEditorCamera.cs.meta │ ├── misc.meta │ └── misc │ │ ├── MiniJSON.cs │ │ └── MiniJSON.cs.meta └── data.meta ├── Packages └── manifest.json └── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | u3d/Library 3 | u3d/Temp 4 | u3d/*.sln 5 | u3d/*.csproj 6 | u3d/*.userprefs 7 | 8 | 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unity3D Character Skill Editor 2 | 3 | ### Welcome to my blog [www.luzexi.com](http://www.luzexi.com) 4 | 5 | ### Use Unity2018 version 6 | 7 | Unity3D 技能编辑器 8 | 9 | 目的: 10 | 11 | 数据与逻辑分离,根据数据来做逻辑 12 | 13 | 编辑器编辑后的数据存储在文件中,保证只要相同数据就能得到相同的效果 14 | 15 | 16 | 技能编辑器功能: 17 | 18 | 1,时间轴为标准 19 | 20 | 2,事件为单位,可以有多个事件组成整个技能 21 | 22 | 3,每个事件有自己的触发点位,在时间轴上显示 23 | 24 | 4,事件功能包括 25 | 26 | 动画播放,循环 27 | 28 | 特效实例化,偏移,父节点绑定 29 | 30 | 受击盒,大小,偏移量 31 | 32 | 消息命令,人物移动,等其他扩展变化 33 | 34 | 5,以制定的时间为结束点 35 | 36 | 6,存储,读取序列化文件 37 | 38 | 7,存储,读取二进制文件 39 | 40 | 41 | ![image](skill-editor.png) 42 | 43 | -------------------------------------------------------------------------------- /skill-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/skill-editor.png -------------------------------------------------------------------------------- /u3d/Assets/Model.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a0d6aa5dbd3feb4baacd785f7053e21 3 | folderAsset: yes 4 | timeCreated: 1505961726 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/bot.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9397ee9a0fc51b14e8a46dc2af78b85e 3 | folderAsset: yes 4 | timeCreated: 1505976181 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/bot/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a57cac9fb06815f45a9ac13a20cbe1e8 3 | folderAsset: yes 4 | timeCreated: 1505976089 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/bot/Materials/Siege_Bot.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/bot/Materials/Siege_Bot.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/bot/Materials/Siege_Bot.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 801b0bef37477484ab48704731642576 3 | timeCreated: 1505976089 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/bot/f_Siege_Bot_01.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/bot/f_Siege_Bot_01.FBX -------------------------------------------------------------------------------- /u3d/Assets/Model/bot/f_Siege_Bot_01.FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8184b5be9fb1d442b47e2a1f86683dd 3 | timeCreated: 1505976089 4 | licenseType: Free 5 | ModelImporter: 6 | serializedVersion: 19 7 | fileIDToRecycleName: 8 | 100000: Bip001 9 | 100002: Bip001 Footsteps 10 | 100004: Bip001 Head 11 | 100006: Bip001 HeadNub 12 | 100008: Bip001 L Calf 13 | 100010: Bip001 L Clavicle 14 | 100012: Bip001 L Finger0 15 | 100014: Bip001 L Finger0Nub 16 | 100016: Bip001 L Foot 17 | 100018: Bip001 L Forearm 18 | 100020: Bip001 L Hand 19 | 100022: Bip001 L HorseLink 20 | 100024: Bip001 L Thigh 21 | 100026: Bip001 L Toe0 22 | 100028: Bip001 L Toe0Nub 23 | 100030: Bip001 L UpperArm 24 | 100032: Bip001 Neck 25 | 100034: Bip001 Pelvis 26 | 100036: Bip001 R Calf 27 | 100038: Bip001 R Clavicle 28 | 100040: Bip001 R Finger0 29 | 100042: Bip001 R Finger0Nub 30 | 100044: Bip001 R Foot 31 | 100046: Bip001 R Forearm 32 | 100048: Bip001 R Hand 33 | 100050: Bip001 R HorseLink 34 | 100052: Bip001 R Thigh 35 | 100054: Bip001 R Toe0 36 | 100056: Bip001 R Toe0Nub 37 | 100058: Bip001 R UpperArm 38 | 100060: Bip001 Spine 39 | 100062: Bone001 40 | 100064: Bone002 41 | 100066: Bone003 42 | 100068: D_Chest 43 | 100070: D_L_Shoot 44 | 100072: D_M_Shoot 45 | 100074: Dummy001 46 | 100076: Dummy002 47 | 100078: //RootNode 48 | 100080: Siege_Bot 49 | 400000: Bip001 50 | 400002: Bip001 Footsteps 51 | 400004: Bip001 Head 52 | 400006: Bip001 HeadNub 53 | 400008: Bip001 L Calf 54 | 400010: Bip001 L Clavicle 55 | 400012: Bip001 L Finger0 56 | 400014: Bip001 L Finger0Nub 57 | 400016: Bip001 L Foot 58 | 400018: Bip001 L Forearm 59 | 400020: Bip001 L Hand 60 | 400022: Bip001 L HorseLink 61 | 400024: Bip001 L Thigh 62 | 400026: Bip001 L Toe0 63 | 400028: Bip001 L Toe0Nub 64 | 400030: Bip001 L UpperArm 65 | 400032: Bip001 Neck 66 | 400034: Bip001 Pelvis 67 | 400036: Bip001 R Calf 68 | 400038: Bip001 R Clavicle 69 | 400040: Bip001 R Finger0 70 | 400042: Bip001 R Finger0Nub 71 | 400044: Bip001 R Foot 72 | 400046: Bip001 R Forearm 73 | 400048: Bip001 R Hand 74 | 400050: Bip001 R HorseLink 75 | 400052: Bip001 R Thigh 76 | 400054: Bip001 R Toe0 77 | 400056: Bip001 R Toe0Nub 78 | 400058: Bip001 R UpperArm 79 | 400060: Bip001 Spine 80 | 400062: Bone001 81 | 400064: Bone002 82 | 400066: Bone003 83 | 400068: D_Chest 84 | 400070: D_L_Shoot 85 | 400072: D_M_Shoot 86 | 400074: Dummy001 87 | 400076: Dummy002 88 | 400078: //RootNode 89 | 400080: Siege_Bot 90 | 4300000: Siege_Bot 91 | 7400000: Take 001 92 | 9500000: //RootNode 93 | 13700000: Siege_Bot 94 | materials: 95 | importMaterials: 1 96 | materialName: 0 97 | materialSearch: 1 98 | animations: 99 | legacyGenerateAnimations: 4 100 | bakeSimulation: 0 101 | resampleCurves: 1 102 | optimizeGameObjects: 0 103 | motionNodeName: 104 | rigImportErrors: 105 | rigImportWarnings: 106 | animationImportErrors: 107 | animationImportWarnings: 108 | animationRetargetingWarnings: 109 | animationDoRetargetingWarnings: 0 110 | animationCompression: 1 111 | animationRotationError: 0.5 112 | animationPositionError: 0.5 113 | animationScaleError: 0.5 114 | animationWrapMode: 0 115 | extraExposedTransformPaths: [] 116 | clipAnimations: [] 117 | isReadable: 1 118 | meshes: 119 | lODScreenPercentages: [] 120 | globalScale: 1 121 | meshCompression: 0 122 | addColliders: 0 123 | importBlendShapes: 1 124 | swapUVChannels: 0 125 | generateSecondaryUV: 0 126 | useFileUnits: 1 127 | optimizeMeshForGPU: 1 128 | keepQuads: 0 129 | weldVertices: 1 130 | secondaryUVAngleDistortion: 8 131 | secondaryUVAreaDistortion: 15.000001 132 | secondaryUVHardAngle: 88 133 | secondaryUVPackMargin: 4 134 | useFileScale: 1 135 | tangentSpace: 136 | normalSmoothAngle: 60 137 | normalImportMode: 0 138 | tangentImportMode: 3 139 | importAnimation: 1 140 | copyAvatar: 0 141 | humanDescription: 142 | serializedVersion: 2 143 | human: [] 144 | skeleton: [] 145 | armTwist: 0.5 146 | foreArmTwist: 0.5 147 | upperLegTwist: 0.5 148 | legTwist: 0.5 149 | armStretch: 0.05 150 | legStretch: 0.05 151 | feetSpacing: 0 152 | rootMotionBoneName: 153 | rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} 154 | hasTranslationDoF: 0 155 | hasExtraRoot: 0 156 | skeletonHasParents: 1 157 | lastHumanDescriptionAvatarSource: {instanceID: 0} 158 | animationType: 2 159 | humanoidOversampling: 1 160 | additionalBone: 0 161 | userData: 162 | assetBundleName: 163 | assetBundleVariant: 164 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d884ffd7cfa7dfd42a9b2266f7b6b27d 3 | folderAsset: yes 4 | timeCreated: 1505976496 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 921650257a56e4345bff33733cdbf8fd 3 | folderAsset: yes 4 | timeCreated: 1505976496 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/effect_caocao_standby_4_1.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/Materials/effect_caocao_standby_4_1.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/effect_caocao_standby_4_1.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69fe7d460bd0211479750022f55ac4cd 3 | timeCreated: 1505976497 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/effect_caocao_standby_4_2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/Materials/effect_caocao_standby_4_2.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/effect_caocao_standby_4_2.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50677c23a57679c47b0037ad44aeb374 3 | timeCreated: 1505976497 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/f_caocao_4.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/Materials/f_caocao_4.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/f_caocao_4.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3942c2f926ca88458d29045b0473df7 3 | timeCreated: 1505976497 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/t_caocao_4_1.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/Materials/t_caocao_4_1.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/t_caocao_4_1.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 129f3aaf675daee43bda20680d9da74c 3 | timeCreated: 1505976496 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/t_caocao_4_2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/Materials/t_caocao_4_2.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/t_caocao_4_2.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc3972438c5165549adf025482304dda 3 | timeCreated: 1505976497 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/w_caocao_4.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/Materials/w_caocao_4.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/Materials/w_caocao_4.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4335fb1ea66800e478565c8376de2b87 3 | timeCreated: 1505976496 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/caocao_4.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/caocao_4.FBX -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/caocao_4.FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8036e4a0e1445ba4e9a91401d91af14d 3 | timeCreated: 1505976497 4 | licenseType: Free 5 | ModelImporter: 6 | serializedVersion: 19 7 | fileIDToRecycleName: 8 | 100000: arm_L_Bone004 9 | 100002: arm_r_Bone004 10 | 100004: Bone003 11 | 100006: Bone005 12 | 100008: Bone005 1 13 | 100010: Bone009 14 | 100012: Bone009 1 15 | 100014: Bone012 16 | 100016: Bone012 1 17 | 100018: Bone014 18 | 100020: Bone017 19 | 100022: Bone017 1 20 | 100024: Bone019 21 | 100026: Bone019 1 22 | 100028: Bone021 23 | 100030: Bone021 1 24 | 100032: Bone024 25 | 100034: Bone024 1 26 | 100036: Bone026 27 | 100038: Bone028 28 | 100040: Box01 29 | 100042: Box02 30 | 100044: //RootNode 31 | 100046: caocao_body_model 32 | 100048: caocao_head_model 33 | 100050: caocao_model 34 | 100052: caocao_pifeng_model 35 | 100054: effect_caocao_standby_4_1 36 | 100056: effect_caocao_standby_4_1_2 37 | 100058: effect_caocao_standby_4_2 38 | 100060: effect_caocao_standby_4_2_2 39 | 100062: foot_L_Bone008 40 | 100064: foot_r_Bone008 41 | 100066: head_Bone002 42 | 100068: jianjia_L_Bone018 43 | 100070: jianjia_r_Bone018 44 | 100072: leg1_L_Bone006 45 | 100074: leg1_r_Bone006 46 | 100076: leg_L_Bone007 47 | 100078: leg_r_Bone007 48 | 100080: pifeng_L_Bone015 49 | 100082: pifeng_L_Bone016 50 | 100084: pifeng_r_Bone015 51 | 100086: pifeng_r_Bone016 52 | 100088: qun_L_Bone022 53 | 100090: qun_L_Bone023 54 | 100092: qun_r_Bone022 55 | 100094: qun_r_Bone023 56 | 100096: qundai_Bone013 57 | 100098: qundai_L_Bone010 58 | 100100: qundai_L_Bone011 59 | 100102: qundai_r_Bone010 60 | 100104: qundai_r_Bone011 61 | 100106: wuqi_Bone025 62 | 100108: wuqi_model 63 | 100110: wuqi_piaodai_Bone027 64 | 100112: xiong_Bone001 65 | 100114: xiuzi_L_Bone020 66 | 100116: xiuzi_r_Bone020 67 | 400000: arm_L_Bone004 68 | 400002: arm_r_Bone004 69 | 400004: Bone003 70 | 400006: Bone005 71 | 400008: Bone005 1 72 | 400010: Bone009 73 | 400012: Bone009 1 74 | 400014: Bone012 75 | 400016: Bone012 1 76 | 400018: Bone014 77 | 400020: Bone017 78 | 400022: Bone017 1 79 | 400024: Bone019 80 | 400026: Bone019 1 81 | 400028: Bone021 82 | 400030: Bone021 1 83 | 400032: Bone024 84 | 400034: Bone024 1 85 | 400036: Bone026 86 | 400038: Bone028 87 | 400040: Box01 88 | 400042: Box02 89 | 400044: //RootNode 90 | 400046: caocao_body_model 91 | 400048: caocao_head_model 92 | 400050: caocao_model 93 | 400052: caocao_pifeng_model 94 | 400054: effect_caocao_standby_4_1 95 | 400056: effect_caocao_standby_4_1_2 96 | 400058: effect_caocao_standby_4_2 97 | 400060: effect_caocao_standby_4_2_2 98 | 400062: foot_L_Bone008 99 | 400064: foot_r_Bone008 100 | 400066: head_Bone002 101 | 400068: jianjia_L_Bone018 102 | 400070: jianjia_r_Bone018 103 | 400072: leg1_L_Bone006 104 | 400074: leg1_r_Bone006 105 | 400076: leg_L_Bone007 106 | 400078: leg_r_Bone007 107 | 400080: pifeng_L_Bone015 108 | 400082: pifeng_L_Bone016 109 | 400084: pifeng_r_Bone015 110 | 400086: pifeng_r_Bone016 111 | 400088: qun_L_Bone022 112 | 400090: qun_L_Bone023 113 | 400092: qun_r_Bone022 114 | 400094: qun_r_Bone023 115 | 400096: qundai_Bone013 116 | 400098: qundai_L_Bone010 117 | 400100: qundai_L_Bone011 118 | 400102: qundai_r_Bone010 119 | 400104: qundai_r_Bone011 120 | 400106: wuqi_Bone025 121 | 400108: wuqi_model 122 | 400110: wuqi_piaodai_Bone027 123 | 400112: xiong_Bone001 124 | 400114: xiuzi_L_Bone020 125 | 400116: xiuzi_r_Bone020 126 | 2300000: Box01 127 | 2300002: Box02 128 | 3300000: Box01 129 | 3300002: Box02 130 | 4300000: wuqi_model 131 | 4300002: caocao_model 132 | 4300004: caocao_pifeng_model 133 | 4300006: caocao_head_model 134 | 4300008: caocao_body_model 135 | 4300010: Box01 136 | 4300012: Box02 137 | 4300014: effect_caocao_standby_4_1 138 | 4300016: effect_caocao_standby_4_2 139 | 4300018: effect_caocao_standby_4_2_2 140 | 4300020: effect_caocao_standby_4_1_2 141 | 7400000: Take 001 142 | 7400002: idle 143 | 7400004: attack 144 | 9500000: //RootNode 145 | 11100000: //RootNode 146 | 13700000: caocao_body_model 147 | 13700002: caocao_head_model 148 | 13700004: caocao_model 149 | 13700006: caocao_pifeng_model 150 | 13700008: effect_caocao_standby_4_1 151 | 13700010: effect_caocao_standby_4_1_2 152 | 13700012: effect_caocao_standby_4_2 153 | 13700014: effect_caocao_standby_4_2_2 154 | 13700016: wuqi_model 155 | materials: 156 | importMaterials: 1 157 | materialName: 0 158 | materialSearch: 1 159 | animations: 160 | legacyGenerateAnimations: 4 161 | bakeSimulation: 0 162 | resampleCurves: 1 163 | optimizeGameObjects: 0 164 | motionNodeName: 165 | rigImportErrors: 166 | rigImportWarnings: 167 | animationImportErrors: 168 | animationImportWarnings: 169 | animationRetargetingWarnings: 170 | animationDoRetargetingWarnings: 0 171 | animationCompression: 1 172 | animationRotationError: 0.5 173 | animationPositionError: 0.5 174 | animationScaleError: 0.5 175 | animationWrapMode: 0 176 | extraExposedTransformPaths: [] 177 | clipAnimations: 178 | - serializedVersion: 16 179 | name: idle 180 | takeName: Take 001 181 | firstFrame: 0 182 | lastFrame: 45 183 | wrapMode: 0 184 | orientationOffsetY: 0 185 | level: 0 186 | cycleOffset: 0 187 | loop: 0 188 | hasAdditiveReferencePose: 0 189 | loopTime: 0 190 | loopBlend: 0 191 | loopBlendOrientation: 0 192 | loopBlendPositionY: 0 193 | loopBlendPositionXZ: 0 194 | keepOriginalOrientation: 0 195 | keepOriginalPositionY: 1 196 | keepOriginalPositionXZ: 0 197 | heightFromFeet: 0 198 | mirror: 0 199 | bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000 200 | curves: [] 201 | events: [] 202 | transformMask: 203 | - path: 204 | weight: 1 205 | - path: Box01 206 | weight: 1 207 | - path: Box01/Box02 208 | weight: 1 209 | - path: Box01/Box02/arm_L_Bone004 210 | weight: 1 211 | - path: Box01/Box02/arm_L_Bone004/Bone005 212 | weight: 1 213 | - path: Box01/Box02/arm_L_Bone004/xiuzi_L_Bone020 214 | weight: 1 215 | - path: Box01/Box02/arm_L_Bone004/xiuzi_L_Bone020/Bone021 216 | weight: 1 217 | - path: Box01/Box02/arm_r_Bone004 218 | weight: 1 219 | - path: Box01/Box02/arm_r_Bone004/Bone005 1 220 | weight: 1 221 | - path: Box01/Box02/arm_r_Bone004/xiuzi_r_Bone020 222 | weight: 1 223 | - path: Box01/Box02/arm_r_Bone004/xiuzi_r_Bone020/Bone021 1 224 | weight: 1 225 | - path: Box01/Box02/jianjia_L_Bone018 226 | weight: 1 227 | - path: Box01/Box02/jianjia_L_Bone018/Bone019 228 | weight: 1 229 | - path: Box01/Box02/jianjia_r_Bone018 230 | weight: 1 231 | - path: Box01/Box02/jianjia_r_Bone018/Bone019 1 232 | weight: 1 233 | - path: Box01/Box02/pifeng_L_Bone015 234 | weight: 1 235 | - path: Box01/Box02/pifeng_L_Bone015/pifeng_L_Bone016 236 | weight: 1 237 | - path: Box01/Box02/pifeng_L_Bone015/pifeng_L_Bone016/Bone017 238 | weight: 1 239 | - path: Box01/Box02/pifeng_r_Bone015 240 | weight: 1 241 | - path: Box01/Box02/pifeng_r_Bone015/pifeng_r_Bone016 242 | weight: 1 243 | - path: Box01/Box02/pifeng_r_Bone015/pifeng_r_Bone016/Bone017 1 244 | weight: 1 245 | - path: Box01/Box02/qun_L_Bone022 246 | weight: 1 247 | - path: Box01/Box02/qun_L_Bone022/qun_L_Bone023 248 | weight: 1 249 | - path: Box01/Box02/qun_L_Bone022/qun_L_Bone023/Bone024 250 | weight: 1 251 | - path: Box01/Box02/qun_r_Bone022 252 | weight: 1 253 | - path: Box01/Box02/qun_r_Bone022/qun_r_Bone023 254 | weight: 1 255 | - path: Box01/Box02/qun_r_Bone022/qun_r_Bone023/Bone024 1 256 | weight: 1 257 | - path: Box01/Box02/qundai_Bone013 258 | weight: 1 259 | - path: Box01/Box02/qundai_Bone013/Bone014 260 | weight: 1 261 | - path: Box01/Box02/qundai_L_Bone010 262 | weight: 1 263 | - path: Box01/Box02/qundai_L_Bone010/qundai_L_Bone011 264 | weight: 1 265 | - path: Box01/Box02/qundai_L_Bone010/qundai_L_Bone011/Bone012 266 | weight: 1 267 | - path: Box01/Box02/qundai_r_Bone010 268 | weight: 1 269 | - path: Box01/Box02/qundai_r_Bone010/qundai_r_Bone011 270 | weight: 1 271 | - path: Box01/Box02/qundai_r_Bone010/qundai_r_Bone011/Bone012 1 272 | weight: 1 273 | - path: Box01/Box02/wuqi_Bone025 274 | weight: 1 275 | - path: Box01/Box02/wuqi_Bone025/Bone026 276 | weight: 1 277 | - path: Box01/Box02/wuqi_Bone025/wuqi_piaodai_Bone027 278 | weight: 1 279 | - path: Box01/Box02/wuqi_Bone025/wuqi_piaodai_Bone027/Bone028 280 | weight: 1 281 | - path: Box01/Box02/xiong_Bone001 282 | weight: 1 283 | - path: Box01/Box02/xiong_Bone001/head_Bone002 284 | weight: 1 285 | - path: Box01/Box02/xiong_Bone001/head_Bone002/Bone003 286 | weight: 1 287 | - path: Box01/leg1_L_Bone006 288 | weight: 1 289 | - path: Box01/leg1_L_Bone006/leg_L_Bone007 290 | weight: 1 291 | - path: Box01/leg1_L_Bone006/leg_L_Bone007/foot_L_Bone008 292 | weight: 1 293 | - path: Box01/leg1_L_Bone006/leg_L_Bone007/foot_L_Bone008/Bone009 294 | weight: 1 295 | - path: Box01/leg1_r_Bone006 296 | weight: 1 297 | - path: Box01/leg1_r_Bone006/leg_r_Bone007 298 | weight: 1 299 | - path: Box01/leg1_r_Bone006/leg_r_Bone007/foot_r_Bone008 300 | weight: 1 301 | - path: Box01/leg1_r_Bone006/leg_r_Bone007/foot_r_Bone008/Bone009 1 302 | weight: 1 303 | - path: caocao_body_model 304 | weight: 1 305 | - path: caocao_head_model 306 | weight: 1 307 | - path: caocao_model 308 | weight: 1 309 | - path: caocao_pifeng_model 310 | weight: 1 311 | - path: effect_caocao_standby_4_1 312 | weight: 1 313 | - path: effect_caocao_standby_4_1_2 314 | weight: 1 315 | - path: effect_caocao_standby_4_2 316 | weight: 1 317 | - path: effect_caocao_standby_4_2_2 318 | weight: 1 319 | - path: wuqi_model 320 | weight: 1 321 | maskType: 3 322 | maskSource: {instanceID: 0} 323 | additiveReferencePoseFrame: 0 324 | - serializedVersion: 16 325 | name: attack 326 | takeName: Take 001 327 | firstFrame: 46 328 | lastFrame: 142 329 | wrapMode: 0 330 | orientationOffsetY: 0 331 | level: 0 332 | cycleOffset: 0 333 | loop: 0 334 | hasAdditiveReferencePose: 0 335 | loopTime: 0 336 | loopBlend: 0 337 | loopBlendOrientation: 0 338 | loopBlendPositionY: 0 339 | loopBlendPositionXZ: 0 340 | keepOriginalOrientation: 0 341 | keepOriginalPositionY: 1 342 | keepOriginalPositionXZ: 0 343 | heightFromFeet: 0 344 | mirror: 0 345 | bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000 346 | curves: [] 347 | events: [] 348 | transformMask: 349 | - path: 350 | weight: 1 351 | - path: Box01 352 | weight: 1 353 | - path: Box01/Box02 354 | weight: 1 355 | - path: Box01/Box02/arm_L_Bone004 356 | weight: 1 357 | - path: Box01/Box02/arm_L_Bone004/Bone005 358 | weight: 1 359 | - path: Box01/Box02/arm_L_Bone004/xiuzi_L_Bone020 360 | weight: 1 361 | - path: Box01/Box02/arm_L_Bone004/xiuzi_L_Bone020/Bone021 362 | weight: 1 363 | - path: Box01/Box02/arm_r_Bone004 364 | weight: 1 365 | - path: Box01/Box02/arm_r_Bone004/Bone005 1 366 | weight: 1 367 | - path: Box01/Box02/arm_r_Bone004/xiuzi_r_Bone020 368 | weight: 1 369 | - path: Box01/Box02/arm_r_Bone004/xiuzi_r_Bone020/Bone021 1 370 | weight: 1 371 | - path: Box01/Box02/jianjia_L_Bone018 372 | weight: 1 373 | - path: Box01/Box02/jianjia_L_Bone018/Bone019 374 | weight: 1 375 | - path: Box01/Box02/jianjia_r_Bone018 376 | weight: 1 377 | - path: Box01/Box02/jianjia_r_Bone018/Bone019 1 378 | weight: 1 379 | - path: Box01/Box02/pifeng_L_Bone015 380 | weight: 1 381 | - path: Box01/Box02/pifeng_L_Bone015/pifeng_L_Bone016 382 | weight: 1 383 | - path: Box01/Box02/pifeng_L_Bone015/pifeng_L_Bone016/Bone017 384 | weight: 1 385 | - path: Box01/Box02/pifeng_r_Bone015 386 | weight: 1 387 | - path: Box01/Box02/pifeng_r_Bone015/pifeng_r_Bone016 388 | weight: 1 389 | - path: Box01/Box02/pifeng_r_Bone015/pifeng_r_Bone016/Bone017 1 390 | weight: 1 391 | - path: Box01/Box02/qun_L_Bone022 392 | weight: 1 393 | - path: Box01/Box02/qun_L_Bone022/qun_L_Bone023 394 | weight: 1 395 | - path: Box01/Box02/qun_L_Bone022/qun_L_Bone023/Bone024 396 | weight: 1 397 | - path: Box01/Box02/qun_r_Bone022 398 | weight: 1 399 | - path: Box01/Box02/qun_r_Bone022/qun_r_Bone023 400 | weight: 1 401 | - path: Box01/Box02/qun_r_Bone022/qun_r_Bone023/Bone024 1 402 | weight: 1 403 | - path: Box01/Box02/qundai_Bone013 404 | weight: 1 405 | - path: Box01/Box02/qundai_Bone013/Bone014 406 | weight: 1 407 | - path: Box01/Box02/qundai_L_Bone010 408 | weight: 1 409 | - path: Box01/Box02/qundai_L_Bone010/qundai_L_Bone011 410 | weight: 1 411 | - path: Box01/Box02/qundai_L_Bone010/qundai_L_Bone011/Bone012 412 | weight: 1 413 | - path: Box01/Box02/qundai_r_Bone010 414 | weight: 1 415 | - path: Box01/Box02/qundai_r_Bone010/qundai_r_Bone011 416 | weight: 1 417 | - path: Box01/Box02/qundai_r_Bone010/qundai_r_Bone011/Bone012 1 418 | weight: 1 419 | - path: Box01/Box02/wuqi_Bone025 420 | weight: 1 421 | - path: Box01/Box02/wuqi_Bone025/Bone026 422 | weight: 1 423 | - path: Box01/Box02/wuqi_Bone025/wuqi_piaodai_Bone027 424 | weight: 1 425 | - path: Box01/Box02/wuqi_Bone025/wuqi_piaodai_Bone027/Bone028 426 | weight: 1 427 | - path: Box01/Box02/xiong_Bone001 428 | weight: 1 429 | - path: Box01/Box02/xiong_Bone001/head_Bone002 430 | weight: 1 431 | - path: Box01/Box02/xiong_Bone001/head_Bone002/Bone003 432 | weight: 1 433 | - path: Box01/leg1_L_Bone006 434 | weight: 1 435 | - path: Box01/leg1_L_Bone006/leg_L_Bone007 436 | weight: 1 437 | - path: Box01/leg1_L_Bone006/leg_L_Bone007/foot_L_Bone008 438 | weight: 1 439 | - path: Box01/leg1_L_Bone006/leg_L_Bone007/foot_L_Bone008/Bone009 440 | weight: 1 441 | - path: Box01/leg1_r_Bone006 442 | weight: 1 443 | - path: Box01/leg1_r_Bone006/leg_r_Bone007 444 | weight: 1 445 | - path: Box01/leg1_r_Bone006/leg_r_Bone007/foot_r_Bone008 446 | weight: 1 447 | - path: Box01/leg1_r_Bone006/leg_r_Bone007/foot_r_Bone008/Bone009 1 448 | weight: 1 449 | - path: caocao_body_model 450 | weight: 1 451 | - path: caocao_head_model 452 | weight: 1 453 | - path: caocao_model 454 | weight: 1 455 | - path: caocao_pifeng_model 456 | weight: 1 457 | - path: effect_caocao_standby_4_1 458 | weight: 1 459 | - path: effect_caocao_standby_4_1_2 460 | weight: 1 461 | - path: effect_caocao_standby_4_2 462 | weight: 1 463 | - path: effect_caocao_standby_4_2_2 464 | weight: 1 465 | - path: wuqi_model 466 | weight: 1 467 | maskType: 3 468 | maskSource: {instanceID: 0} 469 | additiveReferencePoseFrame: 0 470 | isReadable: 0 471 | meshes: 472 | lODScreenPercentages: [] 473 | globalScale: 1 474 | meshCompression: 0 475 | addColliders: 0 476 | importBlendShapes: 1 477 | swapUVChannels: 0 478 | generateSecondaryUV: 0 479 | useFileUnits: 1 480 | optimizeMeshForGPU: 1 481 | keepQuads: 0 482 | weldVertices: 1 483 | secondaryUVAngleDistortion: 8 484 | secondaryUVAreaDistortion: 15.000001 485 | secondaryUVHardAngle: 88 486 | secondaryUVPackMargin: 4 487 | useFileScale: 1 488 | tangentSpace: 489 | normalSmoothAngle: 60 490 | normalImportMode: 0 491 | tangentImportMode: 3 492 | importAnimation: 1 493 | copyAvatar: 0 494 | humanDescription: 495 | serializedVersion: 2 496 | human: [] 497 | skeleton: [] 498 | armTwist: 0.5 499 | foreArmTwist: 0.5 500 | upperLegTwist: 0.5 501 | legTwist: 0.5 502 | armStretch: 0.05 503 | legStretch: 0.05 504 | feetSpacing: 0 505 | rootMotionBoneName: 506 | rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} 507 | hasTranslationDoF: 0 508 | hasExtraRoot: 1 509 | skeletonHasParents: 1 510 | lastHumanDescriptionAvatarSource: {instanceID: 0} 511 | animationType: 1 512 | humanoidOversampling: 1 513 | additionalBone: 0 514 | userData: 515 | assetBundleName: 516 | assetBundleVariant: 517 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/caocao_4.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/caocao_4.prefab -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/caocao_4.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 630b3e47bfdfaed4aab66cdd259f99cb 3 | timeCreated: 1505977114 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d790079f651670445ad1e5c117e7bcc1 3 | folderAsset: yes 4 | timeCreated: 1505976547 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_1.png -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_1.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e9da273c9a98ba48b38c1b5c7e93e23 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: -1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 0 34 | textureType: -1 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_2.png -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_2.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 645e47367f5035d48b71602655ee52d4 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 0 34 | textureType: 0 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_2_ad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_2_ad.png -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_2_ad.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 255276cf09379ee468fcd0af50e63dac 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: -1 28 | mipBias: -1 29 | wrapMode: -1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 0 34 | textureType: -1 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_2_ad_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_2_ad_2.png -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/effect_caocao_standby_4_2_ad_2.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ce93d2950eeb78478db8d00575166c0 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: -1 28 | mipBias: -1 29 | wrapMode: -1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 0 34 | textureType: -1 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/f_caocao_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/texture/f_caocao_4.png -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/f_caocao_4.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b46c3eb253be5e74b837c00440aa1dd0 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: -1 28 | mipBias: -1 29 | wrapMode: -1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 0 34 | textureType: -1 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/t_caocao_4_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/texture/t_caocao_4_1.png -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/t_caocao_4_1.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6abfd093cb1e2041bc170e78aa9542f 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: -1 28 | mipBias: -1 29 | wrapMode: -1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 0 34 | textureType: -1 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/t_caocao_4_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/texture/t_caocao_4_2.png -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/t_caocao_4_2.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1bf219abdc2e0a4db262a50477494e8 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: -1 28 | mipBias: -1 29 | wrapMode: -1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 0 34 | textureType: -1 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/w_caocao_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/caocao/texture/w_caocao_4.png -------------------------------------------------------------------------------- /u3d/Assets/Model/caocao/texture/w_caocao_4.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f22f31f57b6749a49bd580227ed4d79c 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: -1 28 | mipBias: -1 29 | wrapMode: -1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 0 34 | textureType: -1 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /u3d/Assets/Model/heavyrobort.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78adb5e78304e174d81f8032b52d2d64 3 | folderAsset: yes 4 | timeCreated: 1505977483 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/heavyrobort/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d1403d6108ca6f4dacfc2134ac1a9b3 3 | folderAsset: yes 4 | timeCreated: 1505977457 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/heavyrobort/Materials/heavyrobort-0701.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/heavyrobort/Materials/heavyrobort-0701.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/heavyrobort/Materials/heavyrobort-0701.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5a15c56ac07003419a3649257a48fb0 3 | timeCreated: 1505977457 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/heavyrobort/f_Heavyrobort_01.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/heavyrobort/f_Heavyrobort_01.FBX -------------------------------------------------------------------------------- /u3d/Assets/Model/heavyrobort/f_Heavyrobort_01.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/heavyrobort/f_Heavyrobort_01.prefab -------------------------------------------------------------------------------- /u3d/Assets/Model/heavyrobort/f_Heavyrobort_01.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d52abeb04fb8e8a4f8f52787ff7219d4 3 | timeCreated: 1505977827 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/heavyrobort/texture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ebcc329c7954164e8595294d146c251 3 | folderAsset: yes 4 | timeCreated: 1505977781 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/heavyrobort/texture/heavyrobort.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/heavyrobort/texture/heavyrobort.tga -------------------------------------------------------------------------------- /u3d/Assets/Model/heavyrobort/texture/heavyrobort.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9eef5bb6924ec4429db8c7178566199 3 | timeCreated: 1505977787 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 0 46 | spriteTessellationDetail: -1 47 | textureType: 0 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | spriteSheet: 62 | serializedVersion: 2 63 | sprites: [] 64 | outline: [] 65 | spritePackingTag: 66 | userData: 67 | assetBundleName: 68 | assetBundleVariant: 69 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff80605f2d2259c419ab51f100de1597 3 | folderAsset: yes 4 | timeCreated: 1505961726 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 067e0a4ad8f7215409aee7fc44f883fa 3 | folderAsset: yes 4 | timeCreated: 1433230364 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/CF.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/CF.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/CF.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dabff07dfe393104795e4f524a9b6aae 3 | timeCreated: 1433234354 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8741b8f945dc9a64c8fabd919c80bcb7 3 | folderAsset: yes 4 | timeCreated: 1433230465 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/Materials/02 - Default.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/Materials/02 - Default.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/Materials/02 - Default.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d172671567c627348bd42386b494deb5 3 | timeCreated: 1433230465 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/atk1.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/atk1.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/atk1.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e899d7cc43bd8c46b9a3b5b5d9c00f8 3 | timeCreated: 1433234336 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/atk2.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/atk2.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/atk2.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b7e4ec7b612b0649acb80c47c786ad9 3 | timeCreated: 1433234342 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/atk3.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/atk3.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/atk3.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3434770b87c8d14a8ced528e6a7ddcf 3 | timeCreated: 1433234347 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/die.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/die.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/die.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04d0c6c45c1e3c8429d084b80163f21e 3 | timeCreated: 1433234357 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/hurt.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/hurt.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/hurt.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83a5f05e29d52ed4bbf19c1dc0e6fdb2 3 | timeCreated: 1433234360 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/idle.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/idle.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/idle.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c231762ffd6dae84c96556bc80d7fa83 3 | timeCreated: 1433234383 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/jifei.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/jifei.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/jifei.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b295da7786118b647b2c20408474aa4d 3 | timeCreated: 1433234370 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/jitui.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/jitui.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/jitui.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9716b3a15524f704499412db0158586b 3 | timeCreated: 1433234373 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/move.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/move.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/move.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 581b2853f2cb2a342a2fc8fbfdcfd614 3 | timeCreated: 1433234376 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/sparta.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/sparta.FBX -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/sparta.FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0608f5acc07a3424ebbcf91edf8f7bdf 3 | timeCreated: 1432891152 4 | licenseType: Pro 5 | ModelImporter: 6 | serializedVersion: 18 7 | fileIDToRecycleName: 8 | 100000: Bip001 9 | 100002: Bip001 Head 10 | 100004: Bip001 HeadNub 11 | 100006: Bip001 L Calf 12 | 100008: Bip001 L Clavicle 13 | 100010: Bip001 L Finger0 14 | 100012: Bip001 L Finger01 15 | 100014: Bip001 L Finger0Nub 16 | 100016: Bip001 L Finger1 17 | 100018: Bip001 L Finger11 18 | 100020: Bip001 L Finger1Nub 19 | 100022: Bip001 L Foot 20 | 100024: Bip001 L Forearm 21 | 100026: Bip001 L Hand 22 | 100028: Bip001 L Thigh 23 | 100030: Bip001 L Toe0 24 | 100032: Bip001 L Toe0Nub 25 | 100034: Bip001 L UpperArm 26 | 100036: Bip001 Neck 27 | 100038: Bip001 Pelvis 28 | 100040: Bip001 Prop1 29 | 100042: Bip001 Prop2 30 | 100044: Bip001 R Calf 31 | 100046: Bip001 R Clavicle 32 | 100048: Bip001 R Finger0 33 | 100050: Bip001 R Finger01 34 | 100052: Bip001 R Finger0Nub 35 | 100054: Bip001 R Finger1 36 | 100056: Bip001 R Finger11 37 | 100058: Bip001 R Finger1Nub 38 | 100060: Bip001 R Foot 39 | 100062: Bip001 R Forearm 40 | 100064: Bip001 R Hand 41 | 100066: Bip001 R Thigh 42 | 100068: Bip001 R Toe0 43 | 100070: Bip001 R Toe0Nub 44 | 100072: Bip001 R UpperArm 45 | 100074: Bip001 Spine 46 | 100076: Bip001 Spine1 47 | 100078: Bone001 48 | 100080: Bone002 49 | 100082: Bone003 50 | 100084: Bone004 51 | 100086: Bone006 52 | 100088: Bone007 53 | 100090: Bone008 54 | 100092: Bone010 55 | 100094: Bone011 56 | 100096: Bone013 57 | 100098: Bone013(mirrored) 58 | 100100: Bone014 59 | 100102: Bone014(mirrored) 60 | 100104: Bone016 61 | 100106: Bone017 62 | 100108: Bone019 63 | 100110: Bone019(mirrored) 64 | 100112: dun 65 | 100114: mao 66 | 100116: nzj_02 67 | 100118: //RootNode 68 | 100120: Weap_D 69 | 100122: Weap_D_2 70 | 400000: Bip001 71 | 400002: Bip001 Head 72 | 400004: Bip001 HeadNub 73 | 400006: Bip001 L Calf 74 | 400008: Bip001 L Clavicle 75 | 400010: Bip001 L Finger0 76 | 400012: Bip001 L Finger01 77 | 400014: Bip001 L Finger0Nub 78 | 400016: Bip001 L Finger1 79 | 400018: Bip001 L Finger11 80 | 400020: Bip001 L Finger1Nub 81 | 400022: Bip001 L Foot 82 | 400024: Bip001 L Forearm 83 | 400026: Bip001 L Hand 84 | 400028: Bip001 L Thigh 85 | 400030: Bip001 L Toe0 86 | 400032: Bip001 L Toe0Nub 87 | 400034: Bip001 L UpperArm 88 | 400036: Bip001 Neck 89 | 400038: Bip001 Pelvis 90 | 400040: Bip001 Prop1 91 | 400042: Bip001 Prop2 92 | 400044: Bip001 R Calf 93 | 400046: Bip001 R Clavicle 94 | 400048: Bip001 R Finger0 95 | 400050: Bip001 R Finger01 96 | 400052: Bip001 R Finger0Nub 97 | 400054: Bip001 R Finger1 98 | 400056: Bip001 R Finger11 99 | 400058: Bip001 R Finger1Nub 100 | 400060: Bip001 R Foot 101 | 400062: Bip001 R Forearm 102 | 400064: Bip001 R Hand 103 | 400066: Bip001 R Thigh 104 | 400068: Bip001 R Toe0 105 | 400070: Bip001 R Toe0Nub 106 | 400072: Bip001 R UpperArm 107 | 400074: Bip001 Spine 108 | 400076: Bip001 Spine1 109 | 400078: Bone001 110 | 400080: Bone002 111 | 400082: Bone003 112 | 400084: Bone004 113 | 400086: Bone006 114 | 400088: Bone007 115 | 400090: Bone008 116 | 400092: Bone010 117 | 400094: Bone011 118 | 400096: Bone013 119 | 400098: Bone013(mirrored) 120 | 400100: Bone014 121 | 400102: Bone014(mirrored) 122 | 400104: Bone016 123 | 400106: Bone017 124 | 400108: Bone019 125 | 400110: Bone019(mirrored) 126 | 400112: dun 127 | 400114: mao 128 | 400116: nzj_02 129 | 400118: //RootNode 130 | 400120: Weap_D 131 | 400122: Weap_D_2 132 | 2300000: dun 133 | 2300002: mao 134 | 2300004: nzj_02 135 | 3300000: dun 136 | 3300002: mao 137 | 3300004: nzj_02 138 | 4300000: nzj_02 139 | 4300002: dun 140 | 4300004: mao 141 | 7400000: Take 001 142 | 7400002: Take 0010 143 | 9500000: //RootNode 144 | 11100000: //RootNode 145 | 13700000: dun 146 | 13700002: mao 147 | 13700004: nzj_02 148 | materials: 149 | importMaterials: 1 150 | materialName: 0 151 | materialSearch: 2 152 | animations: 153 | legacyGenerateAnimations: 4 154 | bakeSimulation: 0 155 | optimizeGameObjects: 0 156 | motionNodeName: 157 | animationCompression: 1 158 | animationRotationError: .5 159 | animationPositionError: .5 160 | animationScaleError: .5 161 | animationWrapMode: 0 162 | extraExposedTransformPaths: [] 163 | clipAnimations: 164 | - serializedVersion: 16 165 | name: Take 001 166 | takeName: Take 001 167 | firstFrame: 0 168 | lastFrame: 45 169 | wrapMode: 0 170 | orientationOffsetY: 0 171 | level: 0 172 | cycleOffset: 0 173 | loop: 0 174 | loopTime: 0 175 | loopBlend: 0 176 | loopBlendOrientation: 0 177 | loopBlendPositionY: 0 178 | loopBlendPositionXZ: 0 179 | keepOriginalOrientation: 0 180 | keepOriginalPositionY: 1 181 | keepOriginalPositionXZ: 0 182 | heightFromFeet: 0 183 | mirror: 0 184 | bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000 185 | curves: [] 186 | events: [] 187 | transformMask: 188 | - path: 189 | weight: 1 190 | - path: Bip001 191 | weight: 1 192 | - path: Bip001/Bip001 Pelvis 193 | weight: 1 194 | - path: Bip001/Bip001 Pelvis/Bip001 Spine 195 | weight: 1 196 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 L Thigh 197 | weight: 1 198 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 L Thigh/Bip001 L Calf 199 | weight: 1 200 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 L Thigh/Bip001 L Calf/Bip001 201 | L Foot 202 | weight: 1 203 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 L Thigh/Bip001 L Calf/Bip001 204 | L Foot/Bip001 L Toe0 205 | weight: 1 206 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 L Thigh/Bip001 L Calf/Bip001 207 | L Foot/Bip001 L Toe0/Bip001 L Toe0Nub 208 | weight: 1 209 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 R Thigh 210 | weight: 1 211 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 R Thigh/Bip001 R Calf 212 | weight: 1 213 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 R Thigh/Bip001 R Calf/Bip001 214 | R Foot 215 | weight: 1 216 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 R Thigh/Bip001 R Calf/Bip001 217 | R Foot/Bip001 R Toe0 218 | weight: 1 219 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 R Thigh/Bip001 R Calf/Bip001 220 | R Foot/Bip001 R Toe0/Bip001 R Toe0Nub 221 | weight: 1 222 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1 223 | weight: 1 224 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck 225 | weight: 1 226 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head 227 | weight: 1 228 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head/Bip001 229 | HeadNub 230 | weight: 1 231 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head/Bone006 232 | weight: 1 233 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head/Bone006/Bone007 234 | weight: 1 235 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head/Bone006/Bone007/Bone008 236 | weight: 1 237 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 238 | Clavicle 239 | weight: 1 240 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 241 | Clavicle/Bip001 L UpperArm 242 | weight: 1 243 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 244 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm 245 | weight: 1 246 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 247 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand 248 | weight: 1 249 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 250 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger0 251 | weight: 1 252 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 253 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger0/Bip001 254 | L Finger01 255 | weight: 1 256 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 257 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger0/Bip001 258 | L Finger01/Bip001 L Finger0Nub 259 | weight: 1 260 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 261 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger1 262 | weight: 1 263 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 264 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger1/Bip001 265 | L Finger11 266 | weight: 1 267 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 268 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger1/Bip001 269 | L Finger11/Bip001 L Finger1Nub 270 | weight: 1 271 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 272 | Clavicle/Bone019 273 | weight: 1 274 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 275 | Clavicle 276 | weight: 1 277 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 278 | Clavicle/Bip001 R UpperArm 279 | weight: 1 280 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 281 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm 282 | weight: 1 283 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 284 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand 285 | weight: 1 286 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 287 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger0 288 | weight: 1 289 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 290 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger0/Bip001 291 | R Finger01 292 | weight: 1 293 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 294 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger0/Bip001 295 | R Finger01/Bip001 R Finger0Nub 296 | weight: 1 297 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 298 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger1 299 | weight: 1 300 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 301 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger1/Bip001 302 | R Finger11 303 | weight: 1 304 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 305 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger1/Bip001 306 | R Finger11/Bip001 R Finger1Nub 307 | weight: 1 308 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 309 | Clavicle/Bone019(mirrored) 310 | weight: 1 311 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bone001 312 | weight: 1 313 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bone001/Bone002 314 | weight: 1 315 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bone001/Bone002/Bone003 316 | weight: 1 317 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bone001/Bone002/Bone003/Bone004 318 | weight: 1 319 | - path: Bip001/Bip001 Pelvis/Bone010 320 | weight: 1 321 | - path: Bip001/Bip001 Pelvis/Bone010/Bone011 322 | weight: 1 323 | - path: Bip001/Bip001 Pelvis/Bone013 324 | weight: 1 325 | - path: Bip001/Bip001 Pelvis/Bone013/Bone014 326 | weight: 1 327 | - path: Bip001/Bip001 Pelvis/Bone013(mirrored) 328 | weight: 1 329 | - path: Bip001/Bip001 Pelvis/Bone013(mirrored)/Bone014(mirrored) 330 | weight: 1 331 | - path: Bip001/Bip001 Pelvis/Bone016 332 | weight: 1 333 | - path: Bip001/Bip001 Pelvis/Bone016/Bone017 334 | weight: 1 335 | - path: Bip001/Bip001 Prop1 336 | weight: 1 337 | - path: Bip001/Bip001 Prop1/Weap_D 338 | weight: 1 339 | - path: Bip001/Bip001 Prop2 340 | weight: 1 341 | - path: dun 342 | weight: 1 343 | - path: mao 344 | weight: 1 345 | - path: nzj_02 346 | weight: 1 347 | - path: Weap_D_2 348 | weight: 1 349 | maskType: 0 350 | maskSource: {instanceID: 0} 351 | - serializedVersion: 16 352 | name: Take 0010 353 | takeName: Take 001 354 | firstFrame: 0 355 | lastFrame: 45 356 | wrapMode: 0 357 | orientationOffsetY: 0 358 | level: 0 359 | cycleOffset: 0 360 | loop: 0 361 | loopTime: 0 362 | loopBlend: 0 363 | loopBlendOrientation: 0 364 | loopBlendPositionY: 0 365 | loopBlendPositionXZ: 0 366 | keepOriginalOrientation: 0 367 | keepOriginalPositionY: 1 368 | keepOriginalPositionXZ: 0 369 | heightFromFeet: 0 370 | mirror: 0 371 | bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000 372 | curves: [] 373 | events: [] 374 | transformMask: 375 | - path: 376 | weight: 1 377 | - path: Bip001 378 | weight: 1 379 | - path: Bip001/Bip001 Pelvis 380 | weight: 1 381 | - path: Bip001/Bip001 Pelvis/Bip001 Spine 382 | weight: 1 383 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 L Thigh 384 | weight: 1 385 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 L Thigh/Bip001 L Calf 386 | weight: 1 387 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 L Thigh/Bip001 L Calf/Bip001 388 | L Foot 389 | weight: 1 390 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 L Thigh/Bip001 L Calf/Bip001 391 | L Foot/Bip001 L Toe0 392 | weight: 1 393 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 L Thigh/Bip001 L Calf/Bip001 394 | L Foot/Bip001 L Toe0/Bip001 L Toe0Nub 395 | weight: 1 396 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 R Thigh 397 | weight: 1 398 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 R Thigh/Bip001 R Calf 399 | weight: 1 400 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 R Thigh/Bip001 R Calf/Bip001 401 | R Foot 402 | weight: 1 403 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 R Thigh/Bip001 R Calf/Bip001 404 | R Foot/Bip001 R Toe0 405 | weight: 1 406 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 R Thigh/Bip001 R Calf/Bip001 407 | R Foot/Bip001 R Toe0/Bip001 R Toe0Nub 408 | weight: 1 409 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1 410 | weight: 1 411 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck 412 | weight: 1 413 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head 414 | weight: 1 415 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head/Bip001 416 | HeadNub 417 | weight: 1 418 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head/Bone006 419 | weight: 1 420 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head/Bone006/Bone007 421 | weight: 1 422 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head/Bone006/Bone007/Bone008 423 | weight: 1 424 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 425 | Clavicle 426 | weight: 1 427 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 428 | Clavicle/Bip001 L UpperArm 429 | weight: 1 430 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 431 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm 432 | weight: 1 433 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 434 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand 435 | weight: 1 436 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 437 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger0 438 | weight: 1 439 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 440 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger0/Bip001 441 | L Finger01 442 | weight: 1 443 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 444 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger0/Bip001 445 | L Finger01/Bip001 L Finger0Nub 446 | weight: 1 447 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 448 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger1 449 | weight: 1 450 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 451 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger1/Bip001 452 | L Finger11 453 | weight: 1 454 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 455 | Clavicle/Bip001 L UpperArm/Bip001 L Forearm/Bip001 L Hand/Bip001 L Finger1/Bip001 456 | L Finger11/Bip001 L Finger1Nub 457 | weight: 1 458 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 L 459 | Clavicle/Bone019 460 | weight: 1 461 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 462 | Clavicle 463 | weight: 1 464 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 465 | Clavicle/Bip001 R UpperArm 466 | weight: 1 467 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 468 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm 469 | weight: 1 470 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 471 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand 472 | weight: 1 473 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 474 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger0 475 | weight: 1 476 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 477 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger0/Bip001 478 | R Finger01 479 | weight: 1 480 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 481 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger0/Bip001 482 | R Finger01/Bip001 R Finger0Nub 483 | weight: 1 484 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 485 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger1 486 | weight: 1 487 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 488 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger1/Bip001 489 | R Finger11 490 | weight: 1 491 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 492 | Clavicle/Bip001 R UpperArm/Bip001 R Forearm/Bip001 R Hand/Bip001 R Finger1/Bip001 493 | R Finger11/Bip001 R Finger1Nub 494 | weight: 1 495 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 R 496 | Clavicle/Bone019(mirrored) 497 | weight: 1 498 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bone001 499 | weight: 1 500 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bone001/Bone002 501 | weight: 1 502 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bone001/Bone002/Bone003 503 | weight: 1 504 | - path: Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bone001/Bone002/Bone003/Bone004 505 | weight: 1 506 | - path: Bip001/Bip001 Pelvis/Bone010 507 | weight: 1 508 | - path: Bip001/Bip001 Pelvis/Bone010/Bone011 509 | weight: 1 510 | - path: Bip001/Bip001 Pelvis/Bone013 511 | weight: 1 512 | - path: Bip001/Bip001 Pelvis/Bone013/Bone014 513 | weight: 1 514 | - path: Bip001/Bip001 Pelvis/Bone013(mirrored) 515 | weight: 1 516 | - path: Bip001/Bip001 Pelvis/Bone013(mirrored)/Bone014(mirrored) 517 | weight: 1 518 | - path: Bip001/Bip001 Pelvis/Bone016 519 | weight: 1 520 | - path: Bip001/Bip001 Pelvis/Bone016/Bone017 521 | weight: 1 522 | - path: Bip001/Bip001 Prop1 523 | weight: 1 524 | - path: Bip001/Bip001 Prop1/Weap_D 525 | weight: 1 526 | - path: Bip001/Bip001 Prop2 527 | weight: 1 528 | - path: dun 529 | weight: 1 530 | - path: mao 531 | weight: 1 532 | - path: nzj_02 533 | weight: 1 534 | - path: Weap_D_2 535 | weight: 1 536 | maskType: 0 537 | maskSource: {instanceID: 0} 538 | isReadable: 1 539 | meshes: 540 | lODScreenPercentages: [] 541 | globalScale: 1 542 | meshCompression: 0 543 | addColliders: 0 544 | importBlendShapes: 1 545 | swapUVChannels: 0 546 | generateSecondaryUV: 0 547 | useFileUnits: 1 548 | optimizeMeshForGPU: 0 549 | keepQuads: 0 550 | weldVertices: 1 551 | secondaryUVAngleDistortion: 8 552 | secondaryUVAreaDistortion: 15.000001 553 | secondaryUVHardAngle: 88 554 | secondaryUVPackMargin: 4 555 | useFileScale: 1 556 | tangentSpace: 557 | normalSmoothAngle: 60 558 | splitTangentsAcrossUV: 1 559 | normalImportMode: 2 560 | tangentImportMode: 2 561 | importAnimation: 1 562 | copyAvatar: 0 563 | humanDescription: 564 | human: [] 565 | skeleton: [] 566 | armTwist: .5 567 | foreArmTwist: .5 568 | upperLegTwist: .5 569 | legTwist: .5 570 | armStretch: .0500000007 571 | legStretch: .0500000007 572 | feetSpacing: 0 573 | rootMotionBoneName: 574 | lastHumanDescriptionAvatarSource: {instanceID: 0} 575 | animationType: 1 576 | additionalBone: 0 577 | userData: 578 | assetBundleName: 579 | assetBundleVariant: 580 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/sprint.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Animation/sprint.anim -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Animation/sprint.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dcc86a5e332c77845a05f82e3571a29b 3 | timeCreated: 1433234381 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8b397a0f3a8a6243a61b8865e83115e 3 | folderAsset: yes 4 | timeCreated: 1433226772 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Materials/nzj_02.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Materials/nzj_02.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Materials/nzj_02.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d40e1c6c2169dc44ca324869b46578e4 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Materials/nzj_wuqi.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/Materials/nzj_wuqi.mat -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/Materials/nzj_wuqi.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7052ab6a9d26ef9478482542f7aa70fc 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/sparta.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/sparta.FBX -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/sparta.FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 715b6f2638d804794af9e67ca8594327 3 | timeCreated: 1432891152 4 | licenseType: Pro 5 | ModelImporter: 6 | serializedVersion: 19 7 | fileIDToRecycleName: 8 | 100000: Bip001 9 | 100002: Bip001 Head 10 | 100004: Bip001 HeadNub 11 | 100006: Bip001 L Calf 12 | 100008: Bip001 L Clavicle 13 | 100010: Bip001 L Finger0 14 | 100012: Bip001 L Finger01 15 | 100014: Bip001 L Finger0Nub 16 | 100016: Bip001 L Finger1 17 | 100018: Bip001 L Finger11 18 | 100020: Bip001 L Finger1Nub 19 | 100022: Bip001 L Foot 20 | 100024: Bip001 L Forearm 21 | 100026: Bip001 L Hand 22 | 100028: Bip001 L Thigh 23 | 100030: Bip001 L Toe0 24 | 100032: Bip001 L Toe0Nub 25 | 100034: Bip001 L UpperArm 26 | 100036: Bip001 Neck 27 | 100038: Bip001 Pelvis 28 | 100040: Bip001 Prop1 29 | 100042: Bip001 Prop2 30 | 100044: Bip001 R Calf 31 | 100046: Bip001 R Clavicle 32 | 100048: Bip001 R Finger0 33 | 100050: Bip001 R Finger01 34 | 100052: Bip001 R Finger0Nub 35 | 100054: Bip001 R Finger1 36 | 100056: Bip001 R Finger11 37 | 100058: Bip001 R Finger1Nub 38 | 100060: Bip001 R Foot 39 | 100062: Bip001 R Forearm 40 | 100064: Bip001 R Hand 41 | 100066: Bip001 R Thigh 42 | 100068: Bip001 R Toe0 43 | 100070: Bip001 R Toe0Nub 44 | 100072: Bip001 R UpperArm 45 | 100074: Bip001 Spine 46 | 100076: Bip001 Spine1 47 | 100078: Bone001 48 | 100080: Bone002 49 | 100082: Bone003 50 | 100084: Bone004 51 | 100086: Bone006 52 | 100088: Bone007 53 | 100090: Bone008 54 | 100092: Bone010 55 | 100094: Bone011 56 | 100096: Bone013 57 | 100098: Bone013(mirrored) 58 | 100100: Bone014 59 | 100102: Bone014(mirrored) 60 | 100104: Bone016 61 | 100106: Bone017 62 | 100108: Bone019 63 | 100110: Bone019(mirrored) 64 | 100112: dun 65 | 100114: mao 66 | 100116: nzj_02 67 | 100118: //RootNode 68 | 100120: Weap_D 69 | 100122: Weap_D_2 70 | 400000: Bip001 71 | 400002: Bip001 Head 72 | 400004: Bip001 HeadNub 73 | 400006: Bip001 L Calf 74 | 400008: Bip001 L Clavicle 75 | 400010: Bip001 L Finger0 76 | 400012: Bip001 L Finger01 77 | 400014: Bip001 L Finger0Nub 78 | 400016: Bip001 L Finger1 79 | 400018: Bip001 L Finger11 80 | 400020: Bip001 L Finger1Nub 81 | 400022: Bip001 L Foot 82 | 400024: Bip001 L Forearm 83 | 400026: Bip001 L Hand 84 | 400028: Bip001 L Thigh 85 | 400030: Bip001 L Toe0 86 | 400032: Bip001 L Toe0Nub 87 | 400034: Bip001 L UpperArm 88 | 400036: Bip001 Neck 89 | 400038: Bip001 Pelvis 90 | 400040: Bip001 Prop1 91 | 400042: Bip001 Prop2 92 | 400044: Bip001 R Calf 93 | 400046: Bip001 R Clavicle 94 | 400048: Bip001 R Finger0 95 | 400050: Bip001 R Finger01 96 | 400052: Bip001 R Finger0Nub 97 | 400054: Bip001 R Finger1 98 | 400056: Bip001 R Finger11 99 | 400058: Bip001 R Finger1Nub 100 | 400060: Bip001 R Foot 101 | 400062: Bip001 R Forearm 102 | 400064: Bip001 R Hand 103 | 400066: Bip001 R Thigh 104 | 400068: Bip001 R Toe0 105 | 400070: Bip001 R Toe0Nub 106 | 400072: Bip001 R UpperArm 107 | 400074: Bip001 Spine 108 | 400076: Bip001 Spine1 109 | 400078: Bone001 110 | 400080: Bone002 111 | 400082: Bone003 112 | 400084: Bone004 113 | 400086: Bone006 114 | 400088: Bone007 115 | 400090: Bone008 116 | 400092: Bone010 117 | 400094: Bone011 118 | 400096: Bone013 119 | 400098: Bone013(mirrored) 120 | 400100: Bone014 121 | 400102: Bone014(mirrored) 122 | 400104: Bone016 123 | 400106: Bone017 124 | 400108: Bone019 125 | 400110: Bone019(mirrored) 126 | 400112: dun 127 | 400114: mao 128 | 400116: nzj_02 129 | 400118: //RootNode 130 | 400120: Weap_D 131 | 400122: Weap_D_2 132 | 4300000: nzj_02 133 | 4300002: dun 134 | 4300004: mao 135 | 7400000: Take 001 136 | 9500000: //RootNode 137 | 11100000: //RootNode 138 | 13700000: dun 139 | 13700002: mao 140 | 13700004: nzj_02 141 | materials: 142 | importMaterials: 1 143 | materialName: 0 144 | materialSearch: 1 145 | animations: 146 | legacyGenerateAnimations: 4 147 | bakeSimulation: 0 148 | resampleCurves: 1 149 | optimizeGameObjects: 0 150 | motionNodeName: 151 | rigImportErrors: 152 | rigImportWarnings: 153 | animationImportErrors: 154 | animationImportWarnings: 155 | animationRetargetingWarnings: 156 | animationDoRetargetingWarnings: 0 157 | animationCompression: 1 158 | animationRotationError: 0.5 159 | animationPositionError: 0.5 160 | animationScaleError: 0.5 161 | animationWrapMode: 0 162 | extraExposedTransformPaths: [] 163 | clipAnimations: [] 164 | isReadable: 0 165 | meshes: 166 | lODScreenPercentages: [] 167 | globalScale: 1 168 | meshCompression: 0 169 | addColliders: 0 170 | importBlendShapes: 1 171 | swapUVChannels: 0 172 | generateSecondaryUV: 0 173 | useFileUnits: 1 174 | optimizeMeshForGPU: 1 175 | keepQuads: 0 176 | weldVertices: 1 177 | secondaryUVAngleDistortion: 8 178 | secondaryUVAreaDistortion: 15.000001 179 | secondaryUVHardAngle: 88 180 | secondaryUVPackMargin: 4 181 | useFileScale: 1 182 | tangentSpace: 183 | normalSmoothAngle: 60 184 | normalImportMode: 0 185 | tangentImportMode: 4 186 | importAnimation: 1 187 | copyAvatar: 0 188 | humanDescription: 189 | serializedVersion: 2 190 | human: [] 191 | skeleton: [] 192 | armTwist: 0.5 193 | foreArmTwist: 0.5 194 | upperLegTwist: 0.5 195 | legTwist: 0.5 196 | armStretch: 0.05 197 | legStretch: 0.05 198 | feetSpacing: 0 199 | rootMotionBoneName: 200 | rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1} 201 | hasTranslationDoF: 0 202 | hasExtraRoot: 0 203 | skeletonHasParents: 0 204 | lastHumanDescriptionAvatarSource: {instanceID: 0} 205 | animationType: 1 206 | humanoidOversampling: 1 207 | additionalBone: 0 208 | userData: 209 | assetBundleName: 210 | assetBundleVariant: 211 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/sparta.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/sparta.prefab -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/sparta.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a256fd3a8023c04409a951afefa561fc 3 | timeCreated: 1505962499 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/texture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 546a948edc33bd34c85854321795762b 3 | folderAsset: yes 4 | timeCreated: 1433227119 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/texture/nzj_02.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/texture/nzj_02.tga -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/texture/nzj_02.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0623df5574912a94aaeb2f5acb9af7cf 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: -1 29 | mipBias: -1 30 | wrapMode: -1 31 | nPOTScale: 1 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 0 42 | textureType: -1 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/texture/nzj_02no.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/texture/nzj_02no.tga -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/texture/nzj_02no.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30b905307825b9348b7518742cdb2be1 3 | timeCreated: 1435645651 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 1 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 1 20 | heightScale: .25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 8 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | spriteMode: 0 41 | spriteExtrude: 1 42 | spriteMeshType: 1 43 | alignment: 0 44 | spritePivot: {x: .5, y: .5} 45 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 46 | spritePixelsToUnits: 100 47 | alphaIsTransparency: 0 48 | textureType: 1 49 | buildTargetSettings: [] 50 | spriteSheet: 51 | sprites: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/texture/nzj_wuqi.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Model/sparta/texture/nzj_wuqi.tga -------------------------------------------------------------------------------- /u3d/Assets/Model/sparta/texture/nzj_wuqi.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 854001d20db31614fa6431f8d9cbdf1c 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | seamlessCubemap: 0 24 | textureFormat: -1 25 | maxTextureSize: 1024 26 | textureSettings: 27 | filterMode: -1 28 | aniso: -1 29 | mipBias: -1 30 | wrapMode: -1 31 | nPOTScale: 1 32 | lightmap: 0 33 | compressionQuality: 50 34 | spriteMode: 0 35 | spriteExtrude: 1 36 | spriteMeshType: 1 37 | alignment: 0 38 | spritePivot: {x: .5, y: .5} 39 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 | spritePixelsToUnits: 100 41 | alphaIsTransparency: 0 42 | textureType: -1 43 | buildTargetSettings: [] 44 | spriteSheet: 45 | sprites: [] 46 | spritePackingTag: 47 | userData: 48 | -------------------------------------------------------------------------------- /u3d/Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02c1adcdcfd1e4444a922bed5402ddf4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Resources/Effect.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1733d804db1f7b34dba7604d63eb5dcb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Resources/Effect/effect-particle.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/Assets/Resources/Effect/effect-particle.prefab -------------------------------------------------------------------------------- /u3d/Assets/Resources/Effect/effect-particle.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2bd0fca754f130f4b9e4e570ce68e542 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50c04fa0677e9b24aa91906713725677 3 | folderAsset: yes 4 | timeCreated: 1505897819 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50dfbbcfa8d457843943799e67969002 3 | folderAsset: yes 4 | timeCreated: 1505897819 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/ActionCustomObject.cs: -------------------------------------------------------------------------------- 1 | 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | 7 | 8 | public class ActionCustomObject : MonoBehaviour, ICustomObject 9 | { 10 | public Animation mAnimation; 11 | public Animator mAnimator; 12 | public CharacterController mCharacterController; 13 | 14 | void Awake() 15 | { 16 | if(mAnimation == null) 17 | { 18 | mAnimation = GetComponent(); 19 | } 20 | if(mAnimator == null) 21 | { 22 | mAnimator = GetComponent(); 23 | } 24 | if(mCharacterController == null) 25 | { 26 | mCharacterController = GetComponent(); 27 | } 28 | } 29 | 30 | public Transform GetTransform() 31 | { 32 | return this.transform; 33 | } 34 | 35 | public GameObject GetGameObject() 36 | { 37 | return this.gameObject; 38 | } 39 | 40 | public Animation GetAnimation() 41 | { 42 | return mAnimation; 43 | } 44 | 45 | public Animator GetAnimator() 46 | { 47 | return mAnimator; 48 | } 49 | 50 | public CharacterController GetCharacterController() 51 | { 52 | return mCharacterController; 53 | } 54 | } -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/ActionCustomObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 121719facb2cfa84287c66cb7ad23555 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/ActionExcute.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | using UnityEngine; 4 | using System; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using UnityEditor.SceneManagement; 8 | 9 | #if UNITY_EDITOR 10 | using UnityEditor; 11 | #endif 12 | 13 | 14 | // ActionExcute.cs 15 | // Author: Lu Zexi 16 | // 2015-06-03 17 | 18 | 19 | 20 | //action excute 21 | public class ActionExcute 22 | { 23 | private ActionObject mActionObject = null; 24 | 25 | //temp 26 | public ICustomObject mTarget = null; //target 27 | private ICustomObject mOwner = null; //owner 28 | // private HitData m_HitData = null; //hit data 29 | private float mStartTime = 0; //start time 30 | public bool mIsOver = false; //is over 31 | private int mCurrentIndex = 0; 32 | 33 | public void StartAction( ICustomObject obj, ActionObject _actionObj ) 34 | { 35 | this.mOwner = obj; 36 | this.mStartTime = Time.time; 37 | mActionObject = _actionObj; 38 | mIsOver = false; 39 | mCurrentIndex = 0; 40 | Init(); 41 | } 42 | 43 | void Init() 44 | { 45 | mActionObject.mCustomObject = mOwner; 46 | for(int i = 0 ; i(); 25 | DontDestroyOnLoad(obj); 26 | } 27 | return sInstance; 28 | } 29 | } 30 | 31 | public List mListExcute = new List(16); 32 | 33 | void Awake() 34 | { 35 | if(sInstance == null) 36 | { 37 | sInstance = this; 38 | } 39 | } 40 | 41 | void OnDestroy() 42 | { 43 | if( sInstance == this ) 44 | { 45 | sInstance = null; 46 | } 47 | } 48 | 49 | public ActionExcute StartAction( ActionObject actObj , ICustomObject o ) 50 | { 51 | ActionExcute ac = new ActionExcute(); 52 | ac.StartAction(o, actObj); 53 | mListExcute.Add(ac); 54 | return ac; 55 | } 56 | 57 | void Update() 58 | { 59 | for(int i = 0 ; i mEvents = new List(); 27 | 28 | public ActionEvent mCurrentEvent = null; 29 | public int mCurrentEventIndex = -1; 30 | 31 | public ICustomObject mCustomObject; 32 | 33 | private Dictionary mDicPrefab = new Dictionary(); 34 | 35 | public float GetParentEventTime(ActionEvent _ev) 36 | { 37 | int index = mEvents.IndexOf(_ev); 38 | if(index > 0) 39 | { 40 | return mEvents[index - 1].mTime; 41 | } 42 | return 0; 43 | } 44 | 45 | public void AddPrefab(int id, GameObject obj) 46 | { 47 | mDicPrefab.Add(id, obj); 48 | } 49 | 50 | public void RemovePrefab(int id) 51 | { 52 | mDicPrefab.Remove(id); 53 | } 54 | 55 | public GameObject GetPrefab(int id) 56 | { 57 | return mDicPrefab[id]; 58 | } 59 | 60 | public void CopyFrom(ActionObject src ) 61 | { 62 | // mName = src.mName; 63 | mTotalTime = src.mTotalTime; 64 | mEvents = new List(); 65 | foreach( ActionEvent ev in src.mEvents ) 66 | { 67 | ActionEvent dest = (ActionEvent)ev.Clone(); 68 | dest.SetActionObject(this); 69 | mEvents.Add(dest); 70 | } 71 | } 72 | 73 | public void ReadJson(Dictionary _jsonObj) 74 | { 75 | if(_jsonObj.ContainsKey("mTotalTime")) 76 | { 77 | mTotalTime = int.Parse(_jsonObj["mTotalTime"].ToString()); 78 | } 79 | mEvents.Clear(); 80 | if(_jsonObj.ContainsKey("mEvents")) 81 | { 82 | List lst = _jsonObj["mEvents"] as List; 83 | if(lst != null) 84 | { 85 | for(int i = 0 ; i action_json = lst[i] as Dictionary; 88 | ActionObject.ActionType actioinType = ActionObject.ActionType.DoNothing; 89 | if(action_json.ContainsKey("mActionType")) 90 | { 91 | actioinType = (ActionObject.ActionType)int.Parse(action_json["mActionType"].ToString()); 92 | } 93 | ActionEvent ev = ActionFactory.CreateActionEvent(actioinType); 94 | if(ev != null) 95 | { 96 | ev.ReadJson(action_json); 97 | } 98 | mEvents.Add(ev); 99 | } 100 | } 101 | } 102 | } 103 | 104 | public void Read(BinaryReader br) 105 | { 106 | // mName = br.ReadString(); 107 | mTotalTime = br.ReadSingle(); 108 | int count = br.ReadInt32(); 109 | mEvents.Clear(); 110 | for(int i = 0 ; i _json) 124 | { 125 | _json.Add("mTotalTime",mTotalTime.ToString()); 126 | List lst = new List(); 127 | for(int i = 0 ; i action_data = new Dictionary(); 130 | mEvents[i].WriteJson(action_data); 131 | lst.Add(action_data); 132 | } 133 | _json.Add("mEvents",lst); 134 | } 135 | 136 | public void Write(BinaryWriter bw) 137 | { 138 | // FileStream fs = new FileStream(filetowrite, FileMode.Create); 139 | // BinaryWriter bw = new BinaryWriter(fs, Encoding.Unicode); 140 | // bw.Write(mName); 141 | bw.Write(mTotalTime); 142 | bw.Write(mEvents.Count); 143 | for(int i = 0 ; i= 0 && mCurrentEventIndex < mEvents.Count) 212 | { 213 | ActionEvent ev = ActionFactory.CreateActionEvent(mActionEventType); 214 | if(ev != null) 215 | { 216 | ev.SetActionObject(this); 217 | this.mEvents[mCurrentEventIndex] = ev; 218 | this.mCurrentEvent = ev; 219 | } 220 | } 221 | } 222 | if (GUILayout.Button("Add Event")) 223 | { 224 | ActionEvent ev = ActionFactory.CreateActionEvent(mActionEventType); 225 | if(ev != null) 226 | { 227 | ev.SetActionObject(this); 228 | mCurrentEvent = ev; 229 | mCurrentEventIndex = mEvents.Count; 230 | this.mEvents.Add(ev); 231 | } 232 | } 233 | if (GUILayout.Button("Delete Event")) 234 | { 235 | if(EditorUtility.DisplayDialog("Remove Event","Are you sure to remove Event?","Remove","Cancel")) 236 | { 237 | if(mCurrentEvent != null) 238 | { 239 | mEvents.Remove(mCurrentEvent); 240 | mCurrentEvent = null; 241 | mCurrentEventIndex = -1; 242 | } 243 | } 244 | } 245 | GUILayout.EndHorizontal(); 246 | 247 | GUILayout.EndHorizontal(); 248 | } 249 | { 250 | GUILayout.BeginHorizontal(); 251 | for(int i = 0 ; i(); 27 | // orderingActionTable = src.orderingActionTable; 28 | // m_IsLookTarget = src.m_IsLookTarget; 29 | m_ActionObject = new ActionObject(); 30 | m_ActionObject.CopyFrom( src ); 31 | } 32 | 33 | public void Init() 34 | { 35 | m_ActionObject = new ActionObject(); 36 | // m_IsLookTarget = false; 37 | } 38 | 39 | #if UNITY_EDITOR 40 | 41 | public GameObject previewCharacterSource; 42 | public ActionCustomObject player; 43 | public void Draw() 44 | { 45 | GUILayout.BeginVertical(); 46 | { 47 | previewCharacterSource = (GameObject)EditorGUILayout.ObjectField( previewCharacterSource, typeof(GameObject), false); 48 | 49 | GUILayout.BeginHorizontal(); 50 | if (GUILayout.Button("Create")) 51 | { 52 | if(this.player != null) 53 | { 54 | GameObject.Destroy(this.player.gameObject); 55 | this.player = null; 56 | } 57 | this.player = (GameObject.Instantiate(previewCharacterSource) as GameObject).AddComponent(); 58 | GameObject cam = GameObject.Find("Main Camera"); 59 | if(cam == null) 60 | { 61 | cam = new GameObject("Main Camera"); 62 | } 63 | TempSkillEditorCamera game_c = cam.GetComponent(); 64 | game_c.m_Target = this.player.transform; 65 | // GameObject ingameObj = GameObject.Instantiate(Resources.Load("Scene/InGame")) as GameObject; 66 | // InGameManager.I.GameCamera = game_c.GetComponent(); 67 | } 68 | if (GUILayout.Button("Reset")) 69 | { 70 | this.player.transform.localPosition = Vector3.zero; 71 | this.player.transform.localRotation = Quaternion.identity; 72 | } 73 | if (GUILayout.Button("Play")) 74 | { 75 | if(this.player != null) 76 | { 77 | // ActionExcute.Create(this , this.player); 78 | this.player.transform.localPosition = Vector3.zero; 79 | this.player.transform.localRotation = Quaternion.identity; 80 | // this.player.PlayAction(this); 81 | ActionExcuteManager.instance.StartAction(m_ActionObject,this.player); 82 | } 83 | } 84 | GUILayout.EndHorizontal(); 85 | } 86 | { 87 | GUILayout.BeginVertical(); 88 | if(m_ActionObject != null) 89 | { 90 | m_ActionObject.Draw(this); 91 | } 92 | GUILayout.EndVertical(); 93 | 94 | // GUILayout.BeginVertical(); 95 | // if(m_ActionObjects != null) 96 | // { 97 | // for( int i = 0 ; i)obj); 133 | } 134 | 135 | public void OnSave( string path ) 136 | { 137 | Dictionary obj = new Dictionary(); 138 | m_ActionObject.WriteJson(obj); 139 | string json_str = MiniJSON.Json.Serialize(obj); 140 | File.WriteAllText(path,json_str); 141 | AssetDatabase.Refresh(); 142 | } 143 | 144 | #endif 145 | } 146 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/ActionTable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd7b20f65440141c88a6f342c7674a65 3 | timeCreated: 1433296648 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/EffectController.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | using UnityEngine; 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | 7 | // EffectController.cs 8 | // Author: Lu Zexi 9 | // 2015-06-03 10 | 11 | 12 | 13 | 14 | //effect controller 15 | public class EffectController : MonoBehaviour 16 | { 17 | [SerializeField] 18 | public float time = float.MaxValue; 19 | [SerializeField] 20 | public bool bullet = false; //is bullet 21 | [SerializeField] 22 | public ICustomObject owner = null; //owner 23 | [SerializeField] 24 | public ICustomObject target = null; //target 25 | 26 | private List particles = null; 27 | private List animes = null; 28 | private Animator animatorCache = null; 29 | private float startTime = 0; //start time 30 | private Vector3 startPosition = Vector3.zero; //start position 31 | private float timeCounter = float.MaxValue; 32 | 33 | public bool IsAutoDestroy { get; set; } 34 | 35 | void Awake() 36 | { 37 | IsAutoDestroy = true; 38 | this.particles = new List( GetComponentsInChildren< ParticleSystem >() ); 39 | this.animes = new List( GetComponentsInChildren< Animation >() ); 40 | this.animatorCache = GetComponent< Animator >(); 41 | } 42 | 43 | void Start() 44 | { 45 | this.startTime = Time.time; 46 | this.startPosition = this.transform.localPosition; 47 | if(time < 0 ) 48 | { 49 | IsAutoDestroy = true; 50 | this.timeCounter = float.MaxValue; 51 | } 52 | else 53 | { 54 | IsAutoDestroy = false; 55 | this.timeCounter = time; 56 | } 57 | } 58 | 59 | void Update() 60 | { 61 | if(bullet) 62 | { 63 | if( target != null && target.GetGameObject() != null ) 64 | { 65 | if( (this.transform.position - this.target.GetTransform().position).magnitude < 0.1f ) 66 | { 67 | // target.OnHit( hitData , owner , target ); 68 | GameObject.Destroy(this.gameObject); 69 | return; 70 | } 71 | this.transform.LookAt(this.target.GetTransform()); 72 | } 73 | else 74 | { 75 | if( Time.time - this.startTime > 3f ) 76 | { 77 | GameObject.Destroy(this.gameObject); 78 | return; 79 | } 80 | } 81 | this.transform.position += this.transform.forward*time; 82 | return; 83 | } 84 | 85 | timeCounter -= Time.deltaTime; 86 | if ( IsAutoDestroy ) 87 | { 88 | bool is_alive = false; 89 | if ( particles.Count > 0 ) 90 | { 91 | foreach( ParticleSystem p in particles ) 92 | { 93 | if (p.IsAlive()) 94 | { 95 | is_alive = true; 96 | break; 97 | } 98 | } 99 | } 100 | if ( animes.Count > 0 ) 101 | { 102 | foreach( Animation p in animes ) 103 | { 104 | if (p.isPlaying) 105 | { 106 | is_alive = true; 107 | break; 108 | } 109 | } 110 | } 111 | 112 | if ( animatorCache != null ) 113 | { 114 | //todo playing judge 115 | is_alive = true; 116 | } 117 | 118 | if ( timeCounter <= 0f ) 119 | { 120 | is_alive = false; 121 | } 122 | 123 | if (is_alive == false) 124 | { 125 | GameObject.Destroy(this.gameObject); 126 | return; 127 | } 128 | } 129 | else 130 | { 131 | if ( timeCounter <= 0f ) 132 | { 133 | GameObject.Destroy(this.gameObject); 134 | return; 135 | } 136 | } 137 | } 138 | } 139 | 140 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/EffectController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ac2ec11aee754cd4ba6ad2e8c790806 3 | timeCreated: 1433308700 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/EffectManager.cs: -------------------------------------------------------------------------------- 1 | 2 | // using UnityEngine; 3 | // using System.Collections; 4 | // using System.Collections.Generic; 5 | 6 | 7 | // // EffectManager.cs 8 | // // Author: Lu Zexi 9 | // // 2015-06-03 10 | 11 | 12 | 13 | // //effect manager 14 | // public class EffectManager 15 | // { 16 | // private static EffectManager s_Instance; 17 | // public static EffectManager I 18 | // { 19 | // get 20 | // { 21 | // if( s_Instance == null ) 22 | // { 23 | // s_Instance = new EffectManager(); 24 | // } 25 | // return s_Instance; 26 | // } 27 | // } 28 | 29 | // //create effect 30 | // public EffectController Create( ICustomObject owner , ActionObject.Effect effect, ICustomObject target ) 31 | // { 32 | // Transform go = owner.GetTransform(); 33 | // GameObject obj = GameObject.Instantiate(Resources.Load("Effect/" + effect.name)) as GameObject; 34 | // EffectController effectController = obj.AddComponent(); 35 | // effectController.time = effect.time; 36 | // effectController.bullet = effect.bullet; 37 | // effectController.target = target; 38 | // effectController.owner = owner; 39 | // // effectController.hitData = hitData; 40 | 41 | // Transform trans = go.Find(effect.parent); 42 | // if( trans != null ) 43 | // { 44 | // obj.transform.parent = trans; 45 | // obj.transform.localPosition = effect.offset; 46 | // obj.transform.localRotation = Quaternion.Euler(effect.rotate); 47 | // obj.transform.localScale = effect.scale; 48 | // } 49 | 50 | // if( effect.parent == "null" ) 51 | // { 52 | // obj.transform.parent = go.parent; 53 | // obj.transform.localPosition = go.localPosition + effect.offset; 54 | // obj.transform.localRotation = Quaternion.Euler(go.localRotation.eulerAngles + effect.rotate); 55 | // obj.transform.localScale = effect.scale; 56 | // } 57 | 58 | // return effectController; 59 | // } 60 | // } 61 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/EffectManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62662b79f98544d9698186b6c1c38d0e 3 | timeCreated: 1433308700 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03680430729073f46a5882fde7b5f941 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using System; 4 | using System.IO; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | 8 | #if UNITY_EDITOR 9 | using UnityEditor; 10 | #endif 11 | 12 | //event 13 | public class ActionEvent : System.ICloneable 14 | { 15 | public float mTime = 0f; 16 | 17 | public ActionObject.ActionType mActionType; 18 | 19 | protected ActionObject mActionObject; 20 | protected bool mIsInit = false; 21 | public bool IsInit 22 | { 23 | get 24 | { 25 | return mIsInit; 26 | } 27 | set 28 | { 29 | mIsInit = value; 30 | } 31 | } 32 | 33 | public ActionEvent() 34 | { 35 | // 36 | } 37 | 38 | public void SetActionObject(ActionObject act) 39 | { 40 | mActionObject = act; 41 | } 42 | 43 | public virtual void ReadJson(Dictionary _data) 44 | { 45 | if(_data.ContainsKey("mActionType")) 46 | { 47 | mActionType = (ActionObject.ActionType)int.Parse(_data["mActionType"].ToString()); 48 | } 49 | if(_data.ContainsKey("mTime")) 50 | { 51 | mTime = float.Parse(_data["mTime"].ToString()); 52 | } 53 | } 54 | 55 | public virtual void Read(BinaryReader br) 56 | { 57 | // mActionType = br.ReadInt32() as ActionObject.ActionType; 58 | mTime = br.ReadSingle(); 59 | } 60 | 61 | public virtual void WriteJson(Dictionary _data) 62 | { 63 | _data.Add("mActionType", ((int)mActionType).ToString()); 64 | _data.Add("mTime", mTime.ToString()); 65 | } 66 | 67 | public virtual void Write(BinaryWriter bw) 68 | { 69 | bw.Write((int)mActionType); 70 | bw.Write(mTime); 71 | } 72 | 73 | public object Clone() 74 | { 75 | return null; 76 | } 77 | 78 | public virtual void Reset() 79 | { 80 | mIsInit = false; 81 | } 82 | 83 | public virtual void OnEnter() 84 | { 85 | return; 86 | } 87 | 88 | public virtual bool Do() 89 | { 90 | return true; 91 | } 92 | 93 | public virtual void OnExit() 94 | { 95 | return; 96 | } 97 | 98 | #if UNITY_EDITOR 99 | private Texture2D m_timelineBGTex; 100 | private Vector2 window_size = new Vector2(521,20); 101 | 102 | private void TimeLine( float rate ) 103 | { 104 | if ( m_timelineBGTex == null ) 105 | { 106 | m_timelineBGTex = new Texture2D((int)window_size.x, (int)window_size.y); 107 | } 108 | int i = 0, j = 0; 109 | for (i = 0; i < (int)window_size.x; ++i) 110 | { 111 | for (j = 0; j < (int)window_size.y; ++j) 112 | { 113 | m_timelineBGTex.SetPixel( i, j, Color.white ); 114 | } 115 | } 116 | for (j = 0; j < (int)window_size.y; ++j) 117 | { 118 | m_timelineBGTex.SetPixel( (int)(rate*window_size.x) , j, Color.red ); 119 | } 120 | m_timelineBGTex.Apply(); 121 | GUILayout.Label(m_timelineBGTex); 122 | } 123 | 124 | //draw editor gui 125 | public virtual void Draw( ActionObject aco ) 126 | { 127 | GUILayout.BeginVertical(); 128 | float rateTime = mTime/aco.mTotalTime; 129 | TimeLine(rateTime); 130 | rateTime = GUILayout.HorizontalSlider(rateTime,0,1f,GUILayout.Width(window_size.x)); 131 | mTime = aco.mTotalTime * rateTime; 132 | float parentTime = aco.GetParentEventTime(this); 133 | if(parentTime > mTime) 134 | { 135 | mTime = parentTime; 136 | } 137 | GUILayout.EndVertical(); 138 | } 139 | #endif 140 | } -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 553c17471758db544a8abc023ca20ab7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent_Animation.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using System; 4 | using System.IO; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | 8 | #if UNITY_EDITOR 9 | using UnityEditor; 10 | #endif 11 | 12 | //event animation 13 | public class ActionEvent_Animation : ActionEvent 14 | { 15 | public enum CMD 16 | { 17 | Play = 0, //play 18 | CrossFade, //fade cross 19 | } 20 | 21 | public enum AnimationType 22 | { 23 | Animator = 0, 24 | Animation, 25 | } 26 | 27 | public CMD mCMD = 0; 28 | public AnimationType mAnimationType = 0; 29 | 30 | public string mAniName = string.Empty; 31 | public WrapMode mAniWarp = WrapMode.Once; 32 | 33 | public ActionEvent_Animation() 34 | :base() 35 | { 36 | mActionType = ActionObject.ActionType.Animation; 37 | } 38 | 39 | public object Clone() 40 | { 41 | ActionEvent_Animation ret = new ActionEvent_Animation(); 42 | ret.mActionType = mActionType; 43 | ret.mTime = mTime; 44 | ret.mCMD = mCMD; 45 | ret.mAnimationType = mAnimationType; 46 | ret.mAniName = mAniName; 47 | ret.mAniWarp = mAniWarp; 48 | return ret; 49 | } 50 | 51 | public override void ReadJson(Dictionary _data) 52 | { 53 | base.ReadJson(_data); 54 | 55 | if(_data.ContainsKey("mCMD")) 56 | { 57 | mCMD = (CMD)int.Parse(_data["mCMD"].ToString()); 58 | } 59 | 60 | if(_data.ContainsKey("mAnimationType")) 61 | { 62 | mAnimationType = (AnimationType)int.Parse(_data["mAnimationType"].ToString()); 63 | } 64 | 65 | if(_data.ContainsKey("mAniName")) 66 | { 67 | mAniName = _data["mAniName"].ToString(); 68 | } 69 | 70 | if(_data.ContainsKey("mAniWarp")) 71 | { 72 | mAniWarp = (WrapMode)int.Parse(_data["mAniWarp"].ToString()); 73 | } 74 | } 75 | 76 | public override void Read(BinaryReader br) 77 | { 78 | base.Read(br); 79 | mCMD = (CMD)br.ReadInt32(); 80 | mAnimationType = (AnimationType)br.ReadInt32(); 81 | mAniName = br.ReadString(); 82 | mAniWarp = (WrapMode)br.ReadInt32(); 83 | } 84 | 85 | public override void WriteJson(Dictionary _data) 86 | { 87 | base.WriteJson(_data); 88 | _data.Add("mCMD",((int)mCMD).ToString()); 89 | _data.Add("mAnimationType",((int)mAnimationType).ToString()); 90 | _data.Add("mAniName",mAniName); 91 | _data.Add("mAniWarp",((int)mAniWarp).ToString()); 92 | } 93 | 94 | public override void Write(BinaryWriter bw) 95 | { 96 | base.Write(bw); 97 | bw.Write((int)mCMD); 98 | bw.Write((int)mAnimationType); 99 | bw.Write(mAniName); 100 | bw.Write((int)mAniWarp); 101 | } 102 | 103 | public override bool Do() 104 | { 105 | if(mAnimationType == AnimationType.Animator) 106 | { 107 | Animator animator = mActionObject.mCustomObject.GetAnimator(); 108 | if(animator == null) 109 | { 110 | Debug.LogError("Animator can't be found."); 111 | return true; 112 | } 113 | switch(mCMD) 114 | { 115 | case CMD.Play: 116 | animator.Play(mAniName); 117 | break; 118 | case CMD.CrossFade: 119 | animator.CrossFade(mAniName,0.3f); 120 | break; 121 | } 122 | } 123 | else if(mAnimationType == AnimationType.Animation) 124 | { 125 | Animation animation = mActionObject.mCustomObject.GetAnimation(); 126 | if(animation == null) 127 | { 128 | Debug.LogError("Animator can't be found."); 129 | return true; 130 | } 131 | AnimationState ani_state = animation[mAniName]; 132 | ani_state.wrapMode = mAniWarp; 133 | switch(mCMD) 134 | { 135 | case CMD.Play: 136 | animation.Play(mAniName); 137 | break; 138 | case CMD.CrossFade: 139 | animation.CrossFade(mAniName,0.3f); 140 | break; 141 | } 142 | } 143 | return true; 144 | } 145 | 146 | #if UNITY_EDITOR 147 | //draw 148 | // private string[] cmd_popup = new string[3]{"Play","CrossFade","Stop"}; 149 | // private string[] animationType_popup = new string[2]{"Animator","Animation"}; 150 | public override void Draw( ActionObject aco ) 151 | { 152 | base.Draw(aco); 153 | 154 | GUILayout.BeginVertical(); 155 | mCMD = (CMD)EditorGUILayout.EnumPopup(mCMD); 156 | mAnimationType = (AnimationType)EditorGUILayout.EnumPopup(mAnimationType); 157 | if(mAnimationType == AnimationType.Animation) 158 | { 159 | mAniWarp = (WrapMode)EditorGUILayout.EnumPopup("WrapMode", mAniWarp); 160 | } 161 | 162 | switch((CMD)mCMD) 163 | { 164 | case CMD.Play: 165 | case CMD.CrossFade: 166 | GUILayout.BeginHorizontal(); 167 | GUILayout.Label("Animation Name"); 168 | this.mAniName = GUILayout.TextField(this.mAniName); 169 | GUILayout.EndHorizontal(); 170 | break; 171 | } 172 | GUILayout.EndVertical(); 173 | } 174 | #endif 175 | } -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent_Animation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9fe30054f0d1de41ab3093a2f736604 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent_Camera.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using System; 4 | using System.IO; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | 8 | #if UNITY_EDITOR 9 | using UnityEditor; 10 | #endif 11 | 12 | //event camera 13 | public class ActionEvent_Camera : ActionEvent 14 | { 15 | public enum CMD 16 | { 17 | Shake = 0, 18 | } 19 | 20 | public CMD mCMD = 0; 21 | 22 | public ActionEvent_Camera() 23 | :base() 24 | { 25 | mActionType = ActionObject.ActionType.Camera; 26 | } 27 | 28 | public object Clone() 29 | { 30 | ActionEvent_Camera ret = new ActionEvent_Camera(); 31 | ret.mActionType = mActionType; 32 | ret.mTime = mTime; 33 | ret.mCMD = mCMD; 34 | return ret; 35 | } 36 | 37 | public override void ReadJson(Dictionary _data) 38 | { 39 | base.ReadJson(_data); 40 | 41 | if(_data.ContainsKey("mCMD")) 42 | { 43 | mCMD = (CMD)int.Parse(_data["mCMD"].ToString()); 44 | } 45 | } 46 | 47 | public override void Read(BinaryReader br) 48 | { 49 | base.Read(br); 50 | mCMD = (CMD)br.ReadInt32(); 51 | } 52 | 53 | public override void WriteJson(Dictionary _data) 54 | { 55 | base.WriteJson(_data); 56 | _data.Add("mCMD",((int)mCMD).ToString()); 57 | } 58 | 59 | public override void Write(BinaryWriter bw) 60 | { 61 | base.Write(bw); 62 | bw.Write((int)mCMD); 63 | } 64 | 65 | public override bool Do() 66 | { 67 | // 68 | return true; 69 | } 70 | 71 | #if UNITY_EDITOR 72 | //draw 73 | // private string[] cmd_popup = new string[1]{"Shake"}; 74 | public override void Draw( ActionObject aco ) 75 | { 76 | base.Draw(aco); 77 | 78 | GUILayout.BeginVertical(); 79 | mCMD = (CMD)EditorGUILayout.EnumPopup(mCMD); 80 | GUILayout.EndVertical(); 81 | } 82 | #endif 83 | } -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent_Camera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92a2944131011b3439ee13fd4ffbb9a0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent_CharacterControl.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using System; 4 | using System.IO; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | 8 | #if UNITY_EDITOR 9 | using UnityEditor; 10 | #endif 11 | 12 | //event character control 13 | public class ActionEvent_CharacterControl : ActionEvent 14 | { 15 | public enum CMD 16 | { 17 | MoveForward = 0, //move forward 18 | MoveRight, 19 | Jump, 20 | } 21 | 22 | public enum EaseType 23 | { 24 | None = 0, 25 | Linear, 26 | EaseInCubic, 27 | EaseOutCubic, 28 | EaseInOutCubic, 29 | } 30 | 31 | public CMD mCMD = 0; 32 | public float mSpeed = 1; 33 | public float mJumpSpeed = 1; 34 | public float mDuration = 1; 35 | public EaseType mEaseType = 0; 36 | 37 | private CharacterController mCharacterController; 38 | private float mStartTime; 39 | 40 | public ActionEvent_CharacterControl() 41 | :base() 42 | { 43 | mActionType = ActionObject.ActionType.CharacterControl; 44 | } 45 | 46 | public object Clone() 47 | { 48 | ActionEvent_CharacterControl ret = new ActionEvent_CharacterControl(); 49 | ret.mActionType = mActionType; 50 | ret.mTime = mTime; 51 | ret.mCMD = mCMD; 52 | ret.mSpeed = mSpeed; 53 | ret.mJumpSpeed = mJumpSpeed; 54 | ret.mDuration = mDuration; 55 | ret.mEaseType = mEaseType; 56 | return ret; 57 | } 58 | 59 | public override void ReadJson(Dictionary _data) 60 | { 61 | base.ReadJson(_data); 62 | 63 | if(_data.ContainsKey("mCMD")) 64 | { 65 | mCMD = (CMD)int.Parse(_data["mCMD"].ToString()); 66 | } 67 | if(_data.ContainsKey("mSpeed")) 68 | { 69 | mSpeed = float.Parse(_data["mSpeed"].ToString()); 70 | } 71 | if(_data.ContainsKey("mJumpSpeed")) 72 | { 73 | mJumpSpeed = float.Parse(_data["mJumpSpeed"].ToString()); 74 | } 75 | if(_data.ContainsKey("mDuration")) 76 | { 77 | mDuration = float.Parse(_data["mDuration"].ToString()); 78 | } 79 | if(_data.ContainsKey("mEaseType")) 80 | { 81 | mEaseType = (EaseType)int.Parse(_data["mEaseType"].ToString()); 82 | } 83 | } 84 | 85 | public override void Read(BinaryReader br) 86 | { 87 | base.Read(br); 88 | 89 | mCMD = (CMD)br.ReadInt32(); 90 | mSpeed = br.ReadSingle(); 91 | mJumpSpeed = br.ReadSingle(); 92 | mDuration = br.ReadSingle(); 93 | mEaseType = (EaseType)br.ReadInt32(); 94 | } 95 | 96 | public override void WriteJson(Dictionary _data) 97 | { 98 | base.WriteJson(_data); 99 | _data.Add("mCMD",((int)mCMD).ToString()); 100 | _data.Add("mSpeed",mSpeed.ToString()); 101 | _data.Add("mJumpSpeed",mJumpSpeed.ToString()); 102 | _data.Add("mDuration",mDuration.ToString()); 103 | } 104 | 105 | public override void Write(BinaryWriter bw) 106 | { 107 | base.Write(bw); 108 | 109 | bw.Write((int)mCMD); 110 | bw.Write(mSpeed); 111 | bw.Write(mJumpSpeed); 112 | bw.Write(mDuration); 113 | bw.Write((int)mEaseType); 114 | } 115 | 116 | public override void OnEnter() 117 | { 118 | mCharacterController = mActionObject.mCustomObject.GetCharacterController(); 119 | if(mCharacterController == null) 120 | { 121 | Debug.LogError("CharacterController can't be found."); 122 | return; 123 | } 124 | mStartTime = Time.time; 125 | } 126 | 127 | public override bool Do() 128 | { 129 | float difTime= Time.time - mStartTime; 130 | if(difTime > mDuration) 131 | { 132 | return true; 133 | } 134 | float rate = difTime/mDuration; 135 | float speed = mSpeed; 136 | switch(mEaseType) 137 | { 138 | case EaseType.None: 139 | speed = mSpeed; 140 | break; 141 | // case EaseType.Linear: 142 | // speed = mSpeed - CMathCurve.Linear(rate,0,1,1)*mSpeed; 143 | // break; 144 | // case EaseType.EaseInCubic: 145 | // speed = mSpeed - CMathCurve.CubicIn(rate,0,1,1)*mSpeed; 146 | // break; 147 | // case EaseType.EaseOutCubic: 148 | // speed = mSpeed - CMathCurve.CubicOut(rate,0,1,1)*mSpeed; 149 | // break; 150 | // case EaseType.EaseInOutCubic: 151 | // speed = mSpeed - CMathCurve.CubicInOut(rate,0,1,1)*mSpeed; 152 | // break; 153 | } 154 | // Debug.LogError("in character move speed is " + speed); 155 | switch(mCMD) 156 | { 157 | case CMD.MoveForward: 158 | mCharacterController.Move((mCharacterController.transform.forward*mSpeed + Vector3.up *-1f) * Time.deltaTime); 159 | break; 160 | case CMD.MoveRight: 161 | mCharacterController.Move((mCharacterController.transform.right*mSpeed + Vector3.up * -1f) * Time.deltaTime); 162 | break; 163 | case CMD.Jump: 164 | if(rate < 0.5f) 165 | { 166 | mCharacterController.Move((mCharacterController.transform.forward*mSpeed + Vector3.up * mJumpSpeed * 1f) * Time.deltaTime); 167 | } 168 | else 169 | { 170 | mCharacterController.Move((mCharacterController.transform.forward*mSpeed + Vector3.up * mJumpSpeed * -1f) * Time.deltaTime); 171 | } 172 | break; 173 | } 174 | return false; 175 | } 176 | 177 | #if UNITY_EDITOR 178 | //draw 179 | // private string[] cmd_popup = new string[3]{"MoveForward","MoveRight","Jump"}; 180 | // private string[] ease_type_popup = new string[5]{"None","Line", "EaseInCubic", "EaseOutCubic", "EaseInOutCubic"}; 181 | public override void Draw( ActionObject aco ) 182 | { 183 | base.Draw(aco); 184 | 185 | GUILayout.BeginVertical(); 186 | 187 | mCMD = (CMD)EditorGUILayout.EnumPopup(mCMD); 188 | 189 | GUILayout.BeginHorizontal(); 190 | GUILayout.Label("Speed"); 191 | this.mSpeed = EditorGUILayout.FloatField(this.mSpeed); 192 | GUILayout.EndHorizontal(); 193 | 194 | if(mCMD == CMD.Jump) 195 | { 196 | GUILayout.BeginHorizontal(); 197 | GUILayout.Label("Jump Speed"); 198 | this.mJumpSpeed = EditorGUILayout.FloatField(this.mJumpSpeed); 199 | GUILayout.EndHorizontal(); 200 | } 201 | 202 | GUILayout.BeginHorizontal(); 203 | GUILayout.Label("Duration"); 204 | this.mDuration = EditorGUILayout.FloatField(this.mDuration); 205 | GUILayout.EndHorizontal(); 206 | 207 | GUILayout.BeginHorizontal(); 208 | GUILayout.Label("Ease Type"); 209 | this.mEaseType = (EaseType)EditorGUILayout.EnumPopup(mEaseType); 210 | GUILayout.EndHorizontal(); 211 | 212 | GUILayout.EndVertical(); 213 | } 214 | #endif 215 | } -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent_CharacterControl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8425000da0619d043bd884901c002fe7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent_Prefab.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.IO; 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | 7 | #if UNITY_EDITOR 8 | using UnityEditor; 9 | #endif 10 | 11 | 12 | //action event use prefab 13 | public class ActionEvent_Prefab : ActionEvent 14 | { 15 | public enum CMD 16 | { 17 | New = 0, 18 | Deactivate, 19 | Activate, 20 | Destroy, 21 | } 22 | public CMD mCMD = 0; 23 | public string mFileName = string.Empty; //file name of resources. 24 | public int mId = -1; //id 25 | // public float mDuration = -1; //cost time , time is Negative 26 | public Vector3 mPosition = Vector3.zero; //local postion 27 | public Quaternion mRotation = Quaternion.identity; //local rotation 28 | public Vector3 mScale = Vector3.one; //local scale 29 | public string mParent = string.Empty; //parent 30 | 31 | public ActionEvent_Prefab() 32 | :base() 33 | { 34 | mActionType = ActionObject.ActionType.Prefab; 35 | } 36 | 37 | public object Clone() 38 | { 39 | ActionEvent_Prefab ret = new ActionEvent_Prefab(); 40 | ret.mActionType = mActionType; 41 | ret.mTime = mTime; 42 | ret.mFileName = mFileName; 43 | // ret.mDuration = mDuration; 44 | ret.mPosition = mPosition; 45 | ret.mRotation = mRotation; 46 | ret.mScale = mScale; 47 | ret.mParent = mParent; 48 | return ret; 49 | } 50 | 51 | public override void ReadJson(Dictionary _data) 52 | { 53 | base.ReadJson(_data); 54 | 55 | if(_data.ContainsKey("mCMD")) 56 | { 57 | mCMD = (CMD)int.Parse(_data["mCMD"].ToString()); 58 | } 59 | if(_data.ContainsKey("mFileName")) 60 | { 61 | mFileName = _data["mFileName"].ToString(); 62 | } 63 | if(_data.ContainsKey("mPositionX")) 64 | { 65 | mPosition.x = float.Parse(_data["mPositionX"].ToString()); 66 | } 67 | if(_data.ContainsKey("mPositionY")) 68 | { 69 | mPosition.y = float.Parse(_data["mPositionY"].ToString()); 70 | } 71 | if(_data.ContainsKey("mPositionZ")) 72 | { 73 | mPosition.z = float.Parse(_data["mPositionZ"].ToString()); 74 | } 75 | if(_data.ContainsKey("mRotationX")) 76 | { 77 | mRotation.x = float.Parse(_data["mRotationX"].ToString()); 78 | } 79 | if(_data.ContainsKey("mRotationY")) 80 | { 81 | mRotation.y = float.Parse(_data["mRotationY"].ToString()); 82 | } 83 | if(_data.ContainsKey("mRotationZ")) 84 | { 85 | mRotation.z = float.Parse(_data["mRotationZ"].ToString()); 86 | } 87 | if(_data.ContainsKey("mRotationW")) 88 | { 89 | mRotation.w = float.Parse(_data["mRotationW"].ToString()); 90 | } 91 | if(_data.ContainsKey("mScaleX")) 92 | { 93 | mScale.x = float.Parse(_data["mScaleX"].ToString()); 94 | } 95 | if(_data.ContainsKey("mScaleY")) 96 | { 97 | mScale.y = float.Parse(_data["mScaleY"].ToString()); 98 | } 99 | if(_data.ContainsKey("mScaleZ")) 100 | { 101 | mScale.z = float.Parse(_data["mScaleZ"].ToString()); 102 | } 103 | if(_data.ContainsKey("mParent")) 104 | { 105 | mParent = _data["mParent"].ToString(); 106 | } 107 | } 108 | 109 | public override void Read(BinaryReader br) 110 | { 111 | base.Read(br); 112 | 113 | mCMD = (CMD)br.ReadInt32(); 114 | mFileName = br.ReadString(); 115 | // mDuration = br.ReadSingle(); 116 | mPosition.x = br.ReadSingle(); 117 | mPosition.y = br.ReadSingle(); 118 | mPosition.z = br.ReadSingle(); 119 | mRotation.x = br.ReadSingle(); 120 | mRotation.y = br.ReadSingle(); 121 | mRotation.z = br.ReadSingle(); 122 | mRotation.w = br.ReadSingle(); 123 | mScale.x = br.ReadSingle(); 124 | mScale.y = br.ReadSingle(); 125 | mScale.z = br.ReadSingle(); 126 | mParent = br.ReadString(); 127 | } 128 | 129 | public override void WriteJson(Dictionary _data) 130 | { 131 | base.WriteJson(_data); 132 | _data.Add("mCMD",((int)mCMD).ToString()); 133 | _data.Add("mFileName",mFileName); 134 | _data.Add("mPositionX",mPosition.x.ToString()); 135 | _data.Add("mPositionY",mPosition.y.ToString()); 136 | _data.Add("mPositionZ",mPosition.z.ToString()); 137 | _data.Add("mRotationX",mRotation.x.ToString()); 138 | _data.Add("mRotationY",mRotation.y.ToString()); 139 | _data.Add("mRotationZ",mRotation.z.ToString()); 140 | _data.Add("mRotationW",mRotation.w.ToString()); 141 | _data.Add("mScaleX",mScale.x.ToString()); 142 | _data.Add("mScaleY",mScale.y.ToString()); 143 | _data.Add("mScaleZ",mScale.z.ToString()); 144 | _data.Add("mParent",mParent); 145 | } 146 | 147 | public override void Write(BinaryWriter bw) 148 | { 149 | base.Write(bw); 150 | 151 | bw.Write((int)mCMD); 152 | bw.Write(mFileName); 153 | // bw.Write(mDuration); 154 | bw.Write(mPosition.x); 155 | bw.Write(mPosition.y); 156 | bw.Write(mPosition.z); 157 | bw.Write(mRotation.x); 158 | bw.Write(mRotation.y); 159 | bw.Write(mRotation.z); 160 | bw.Write(mRotation.w); 161 | bw.Write(mScale.x); 162 | bw.Write(mScale.y); 163 | bw.Write(mScale.z); 164 | bw.Write(mParent); 165 | } 166 | 167 | public override bool Do() 168 | { 169 | GameObject obj; 170 | switch(mCMD) 171 | { 172 | case CMD.New: 173 | obj = GameObject.Instantiate( Resources.Load( mFileName) ) as GameObject; 174 | obj.transform.parent = mActionObject.mCustomObject.GetTransform().Find(mParent); 175 | obj.transform.localPosition = mPosition; 176 | obj.transform.localRotation = mRotation; 177 | obj.transform.localScale = mScale; 178 | if(mId > 0) 179 | { 180 | mActionObject.AddPrefab(mId,obj); 181 | } 182 | break; 183 | case CMD.Deactivate: 184 | if(mId > 0) 185 | { 186 | obj = mActionObject.GetPrefab(mId); 187 | obj.SetActive(false); 188 | } 189 | break; 190 | case CMD.Activate: 191 | if(mId > 0) 192 | { 193 | obj = mActionObject.GetPrefab(mId); 194 | obj.SetActive(true); 195 | } 196 | break; 197 | case CMD.Destroy: 198 | if(mId > 0) 199 | { 200 | obj = mActionObject.GetPrefab(mId); 201 | GameObject.Destroy(obj); 202 | mActionObject.RemovePrefab(mId); 203 | } 204 | break; 205 | } 206 | return true; 207 | } 208 | 209 | #if UNITY_EDITOR 210 | 211 | // private string[] cmd_popup = new string[4]{"New", "Deactivate", "Activate", "Destroy"}; 212 | private Vector4 temp_roation = Vector4.zero; 213 | public override void Draw(ActionObject aco) 214 | { 215 | base.Draw(aco); 216 | 217 | GUILayout.BeginVertical(); 218 | mCMD = (CMD)EditorGUILayout.EnumPopup(mCMD); 219 | 220 | if(mCMD == CMD.New) 221 | { 222 | GUILayout.BeginHorizontal(); 223 | GUILayout.Label("File Name"); 224 | this.mFileName = GUILayout.TextField(this.mFileName); 225 | GUILayout.EndHorizontal(); 226 | 227 | GUILayout.BeginHorizontal(); 228 | GUILayout.Label("ID (Ignore, if don't wanna control it)"); 229 | this.mId = EditorGUILayout.IntField(this.mId); 230 | GUILayout.EndHorizontal(); 231 | 232 | // GUILayout.BeginHorizontal(); 233 | // GUILayout.Label("Duration"); 234 | // this.mDuration = EditorGUILayout.FloatField(this.mDuration); 235 | // GUILayout.EndHorizontal(); 236 | 237 | GUILayout.BeginHorizontal(); 238 | GUILayout.Label("Parent"); 239 | this.mParent = GUILayout.TextField(mParent); 240 | if( GUILayout.Button("copy-parent") ) 241 | { 242 | if( Selection.activeGameObject != null ) 243 | { 244 | string str = Selection.activeGameObject.transform.name; 245 | Transform trans = Selection.activeGameObject.transform.parent; 246 | for(; trans.parent != null;) 247 | { 248 | str = trans.parent.name + "/" + str; 249 | trans = trans.parent; 250 | } 251 | this.mParent = str; 252 | } 253 | } 254 | GUILayout.EndHorizontal(); 255 | 256 | if( GUILayout.Button("copy-transform") ) 257 | { 258 | this.mPosition = Selection.activeGameObject.transform.localPosition; 259 | this.mRotation = Selection.activeGameObject.transform.localRotation; 260 | this.mScale = Selection.activeGameObject.transform.localScale; 261 | } 262 | this.mPosition = EditorGUILayout.Vector3Field("Position" , this.mPosition); 263 | temp_roation = EditorGUILayout.Vector4Field("Rotation" , temp_roation); 264 | if(temp_roation.x != mRotation.x || temp_roation.y != mRotation.y || temp_roation.z == mRotation.z || temp_roation.w != mRotation.w) 265 | { 266 | mRotation = new Quaternion(temp_roation.x, temp_roation.y, temp_roation.z, temp_roation.w); 267 | } 268 | this.mScale = EditorGUILayout.Vector3Field("Scale" , this.mScale); 269 | } 270 | else if(mCMD == CMD.Deactivate) 271 | { 272 | GUILayout.BeginHorizontal(); 273 | GUILayout.Label("ID (which set before)"); 274 | this.mId = EditorGUILayout.IntField(this.mId); 275 | GUILayout.EndHorizontal(); 276 | } 277 | else if(mCMD == CMD.Activate) 278 | { 279 | GUILayout.BeginHorizontal(); 280 | GUILayout.Label("ID (which set before)"); 281 | this.mId = EditorGUILayout.IntField(this.mId); 282 | GUILayout.EndHorizontal(); 283 | } 284 | else if(mCMD == CMD.Destroy) 285 | { 286 | GUILayout.BeginHorizontal(); 287 | GUILayout.Label("ID (which set before)"); 288 | this.mId = EditorGUILayout.IntField(this.mId); 289 | GUILayout.EndHorizontal(); 290 | } 291 | 292 | GUILayout.EndVertical(); 293 | } 294 | #endif 295 | } -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent_Prefab.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eff50e160107a3d42bb4a66a7d3d1f56 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent_Sound.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | using System; 4 | using System.IO; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | 8 | #if UNITY_EDITOR 9 | using UnityEditor; 10 | #endif 11 | 12 | //event 13 | public class ActionEvent_Sound : ActionEvent 14 | { 15 | public enum CMD 16 | { 17 | Play = 0, //play 18 | Stop, //stop 19 | } 20 | 21 | public CMD mCMD = 0; 22 | 23 | public string mSoundName = string.Empty; 24 | 25 | public ActionEvent_Sound() 26 | :base() 27 | { 28 | mActionType = ActionObject.ActionType.Sound; 29 | } 30 | 31 | public object Clone() 32 | { 33 | ActionEvent_Sound ret = new ActionEvent_Sound(); 34 | ret.mActionType = mActionType; 35 | ret.mTime = mTime; 36 | ret.mCMD = mCMD; 37 | ret.mSoundName = mSoundName; 38 | return ret; 39 | } 40 | 41 | public override void ReadJson(Dictionary _data) 42 | { 43 | base.ReadJson(_data); 44 | 45 | if(_data.ContainsKey("mCMD")) 46 | { 47 | mCMD = (CMD)int.Parse(_data["mCMD"].ToString()); 48 | } 49 | if(_data.ContainsKey("mSoundName")) 50 | { 51 | mSoundName = _data["mSoundName"].ToString(); 52 | } 53 | } 54 | 55 | public override void Read(BinaryReader br) 56 | { 57 | base.Read(br); 58 | 59 | mCMD = (CMD)br.ReadInt32(); 60 | mSoundName = br.ReadString(); 61 | } 62 | 63 | public override void WriteJson(Dictionary _data) 64 | { 65 | base.WriteJson(_data); 66 | _data.Add("mCMD",((int)mCMD).ToString()); 67 | _data.Add("mSoundName",mSoundName); 68 | } 69 | 70 | public override void Write(BinaryWriter bw) 71 | { 72 | base.Write(bw); 73 | 74 | bw.Write((int)mCMD); 75 | bw.Write(mSoundName); 76 | } 77 | 78 | public override bool Do() 79 | { 80 | switch(mCMD) 81 | { 82 | case CMD.Play: 83 | // SoundEffect.instance.PlaySfx(mSoundName); 84 | break; 85 | case CMD.Stop: 86 | // SoundEffect.instance.StopSfx(); 87 | break; 88 | } 89 | return true; 90 | } 91 | 92 | #if UNITY_EDITOR 93 | //draw 94 | // private string[] cmd_popup = new string[2]{"Play","Stop"}; 95 | public override void Draw( ActionObject aco ) 96 | { 97 | base.Draw(aco); 98 | 99 | GUILayout.BeginVertical(); 100 | mCMD = (CMD)EditorGUILayout.EnumPopup(mCMD); 101 | 102 | switch(mCMD) 103 | { 104 | case CMD.Play: 105 | GUILayout.BeginHorizontal(); 106 | GUILayout.Label("Sound Name"); 107 | this.mSoundName = GUILayout.TextField(this.mSoundName); 108 | GUILayout.EndHorizontal(); 109 | break; 110 | case CMD.Stop: 111 | break; 112 | } 113 | GUILayout.EndVertical(); 114 | } 115 | #endif 116 | 117 | } -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/Event/ActionEvent_Sound.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08400c79a2d86ae43aacd7245e6c6b8e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/HitController.cs: -------------------------------------------------------------------------------- 1 | 2 | // using UnityEngine; 3 | // using System.Collections; 4 | // using UnityEngine.UI; 5 | 6 | // // HitController.cs 7 | // // Author: Lu Zexi 8 | // // 2015-06-03 9 | 10 | 11 | 12 | 13 | // //hit controller 14 | // public class HitController : MonoBehaviour 15 | // { 16 | // public float m_Time = 0; //time 17 | // // public HitData m_HitData = null; //hit data 18 | // public ICustomObject m_Owner = null; //owner 19 | // public ICustomObject m_Target = null; //target 20 | 21 | // private float m_StartTime = 0; //start time 22 | 23 | // //create 24 | // public static HitController Create( ICustomObject gfx , ActionObject.Hit hit, EffectController effectController , ICustomObject target ) 25 | // { 26 | // GameObject obj = new GameObject("HitController"); 27 | // HitController hitController = obj.AddComponent(); 28 | // BoxCollider col = obj.AddComponent(); 29 | // hitController.m_Owner = gfx; 30 | // hitController.m_Target = target; 31 | 32 | // Transform trans = null; 33 | // if( hit.bindEffect ) 34 | // { 35 | // trans = effectController.gameObject.transform.Find(hit.parent); 36 | // } 37 | // else 38 | // { 39 | // trans = gfx.GetTransform().Find(hit.parent); 40 | // } 41 | 42 | // if( trans != null ) 43 | // { 44 | // obj.transform.parent = trans; 45 | // } 46 | 47 | // obj.transform.localScale = hit.size; 48 | // col.size = Vector3.one; 49 | // col.center = Vector3.zero; 50 | // col.isTrigger = true; 51 | 52 | // obj.transform.localPosition = hit.offset; 53 | // hitController.m_Time = hit.time; 54 | // // hitController.m_HitData = hitdata; 55 | 56 | // obj.transform.localRotation = Quaternion.Euler(hit.rotate); 57 | 58 | // hitController.m_StartTime = Time.time; 59 | 60 | // return hitController; 61 | // } 62 | 63 | 64 | // //update 65 | // void Update() 66 | // { 67 | // float distime = Time.time - this.m_StartTime; 68 | // if(distime > this.m_Time) 69 | // { 70 | // GameObject.Destroy(this.gameObject); 71 | // } 72 | // } 73 | // } 74 | 75 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/HitController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c4ae27362dca41959a41fb7136c3025 3 | timeCreated: 1433308700 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/ICustomObject.cs: -------------------------------------------------------------------------------- 1 | 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | 7 | 8 | // 让所有拥有iCustomObject接口的类都具备action能力 9 | public interface ICustomObject 10 | { 11 | Transform GetTransform(); 12 | 13 | GameObject GetGameObject(); 14 | 15 | Animation GetAnimation(); 16 | 17 | Animator GetAnimator(); 18 | 19 | CharacterController GetCharacterController(); 20 | } -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Action/ICustomObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5608682baecdb64c9ae9a77f66b7046 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c000e10acb0af74f82ce7b28f04e1fb 3 | folderAsset: yes 4 | timeCreated: 1505897819 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Editor/ActionEditPanel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEditor; 6 | using UnityEngine; 7 | using UnityEditor.SceneManagement; 8 | 9 | 10 | 11 | // [ExecuteInEditMode] 12 | public class ActionEditWindow : EditorWindow 13 | { 14 | 15 | public ActionTable m_ActionTable; 16 | private string fileName = "NewAction"; 17 | private string path = ""; 18 | 19 | private Vector2 scrollPosition; 20 | 21 | 22 | [MenuItem("Tools/ActionEditWindow")] 23 | public static void Init() 24 | { 25 | // ActionEditPanel window = EditorWindow.GetWindow(); 26 | ActionEditWindow window = (ActionEditWindow)EditorWindow.GetWindow(typeof(ActionEditWindow)); 27 | window.Show(); 28 | } 29 | 30 | void Awake() 31 | { 32 | m_ActionTable = new ActionTable(); 33 | m_ActionTable.Init(); 34 | } 35 | 36 | void OnGUI() 37 | { 38 | scrollPosition = GUILayout.BeginScrollView(scrollPosition, GUILayout.Width(position.width), GUILayout.Height(position.height)); 39 | 40 | EditorGUILayout.BeginHorizontal(); 41 | if ( GUILayout.Button( "Load Scene" ) ) 42 | { 43 | EditorSceneManager.OpenScene("Assets/Scripts/Editor/CharacterEffectEditor.unity"); 44 | if(!EditorApplication.isPlaying) 45 | EditorApplication.isPlaying = true; 46 | } 47 | if (GUILayout.Button("Clear Action")) 48 | { 49 | if( m_ActionTable != null && this.m_ActionTable.previewCharacterSource != null ) 50 | { 51 | GameObject.Destroy(this.m_ActionTable.previewCharacterSource); 52 | this.m_ActionTable.previewCharacterSource= null; 53 | this.m_ActionTable.player = null; 54 | } 55 | this.m_ActionTable = new ActionTable(); 56 | // this.m_ActionTable = ScriptableObject.CreateInstance(); 57 | this.m_ActionTable.Init(); 58 | this.path = string.Empty; 59 | this.fileName = "NewAction"; 60 | } 61 | if (GUILayout.Button("Load Action")) 62 | { 63 | this.path = EditorUtility.OpenFilePanel("Open Asset...", Application.dataPath + "/App/Art/Resources/Battle/Action/", "json"); 64 | if (this.path != string.Empty) 65 | { 66 | this.m_ActionTable.OnLoad(this.path); 67 | this.fileName = System.IO.Path.GetFileNameWithoutExtension( this.path ); 68 | } 69 | } 70 | if (GUILayout.Button("Save Action")) 71 | { 72 | this.path = EditorUtility.SaveFilePanel("Save Asset...", Application.dataPath + "/App/Art/Resources/Battle/Action/",this.fileName,"json"); 73 | if( this.path != string.Empty ) 74 | { 75 | this.m_ActionTable.OnSave(path); 76 | } 77 | } 78 | if (GUILayout.Button("Read Action")) 79 | { 80 | this.path = EditorUtility.OpenFilePanel("Open Asset...", Application.dataPath + "/App/Art/Resources/Battle/Action/", "bytes"); 81 | if (this.path != string.Empty) 82 | { 83 | this.m_ActionTable.Read(this.path); 84 | this.fileName = System.IO.Path.GetFileNameWithoutExtension( this.path ); 85 | } 86 | } 87 | if (GUILayout.Button("Write Action")) 88 | { 89 | this.path = EditorUtility.SaveFilePanel("Save Asset...", Application.dataPath + "/App/Art/Resources/Battle/Action/",this.fileName,"bytes"); 90 | if( this.path != string.Empty ) 91 | { 92 | this.m_ActionTable.Write(path); 93 | } 94 | } 95 | EditorGUILayout.EndHorizontal(); 96 | 97 | if(this.m_ActionTable != null ) 98 | this.m_ActionTable.Draw(); 99 | 100 | GUILayout.EndScrollView(); 101 | } 102 | 103 | void Update() 104 | { 105 | // 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Editor/ActionEditPanel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca3c11e3983814ff4a9819640aa04c25 3 | timeCreated: 1433315626 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Editor/CharacterEffectEditor.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.37311992, g: 0.38074034, b: 0.35872713, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 0 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_TemporalCoherenceThreshold: 1 54 | m_EnvironmentLightingMode: 0 55 | m_EnableBakedLightmaps: 1 56 | m_EnableRealtimeLightmaps: 1 57 | m_LightmapEditorSettings: 58 | serializedVersion: 10 59 | m_Resolution: 2 60 | m_BakeResolution: 40 61 | m_AtlasSize: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 1 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_ShowResolutionOverlay: 1 92 | m_LightingDataAsset: {fileID: 0} 93 | m_UseShadowmask: 1 94 | --- !u!196 &4 95 | NavMeshSettings: 96 | serializedVersion: 2 97 | m_ObjectHideFlags: 0 98 | m_BuildSettings: 99 | serializedVersion: 2 100 | agentTypeID: 0 101 | agentRadius: 0.5 102 | agentHeight: 2 103 | agentSlope: 45 104 | agentClimb: 0.4 105 | ledgeDropHeight: 0 106 | maxJumpAcrossDistance: 0 107 | minRegionArea: 2 108 | manualCellSize: 0 109 | cellSize: 0.16666667 110 | manualTileSize: 0 111 | tileSize: 256 112 | accuratePlacement: 0 113 | debug: 114 | m_Flags: 0 115 | m_NavMeshData: {fileID: 0} 116 | --- !u!1 &647285047 117 | GameObject: 118 | m_ObjectHideFlags: 0 119 | m_PrefabParentObject: {fileID: 0} 120 | m_PrefabInternal: {fileID: 0} 121 | serializedVersion: 5 122 | m_Component: 123 | - component: {fileID: 647285053} 124 | - component: {fileID: 647285052} 125 | - component: {fileID: 647285051} 126 | - component: {fileID: 647285049} 127 | - component: {fileID: 647285048} 128 | m_Layer: 0 129 | m_Name: Main Camera 130 | m_TagString: Untagged 131 | m_Icon: {fileID: 0} 132 | m_NavMeshLayer: 0 133 | m_StaticEditorFlags: 0 134 | m_IsActive: 1 135 | --- !u!114 &647285048 136 | MonoBehaviour: 137 | m_ObjectHideFlags: 0 138 | m_PrefabParentObject: {fileID: 0} 139 | m_PrefabInternal: {fileID: 0} 140 | m_GameObject: {fileID: 647285047} 141 | m_Enabled: 1 142 | m_EditorHideFlags: 0 143 | m_Script: {fileID: 11500000, guid: 996012592085e4a498b4bfddcd201d4c, type: 3} 144 | m_Name: 145 | m_EditorClassIdentifier: 146 | m_Target: {fileID: 0} 147 | offset_x: 3 148 | offset_y: 3 149 | offset_z: 4 150 | --- !u!81 &647285049 151 | AudioListener: 152 | m_ObjectHideFlags: 0 153 | m_PrefabParentObject: {fileID: 0} 154 | m_PrefabInternal: {fileID: 0} 155 | m_GameObject: {fileID: 647285047} 156 | m_Enabled: 1 157 | --- !u!124 &647285051 158 | Behaviour: 159 | m_ObjectHideFlags: 0 160 | m_PrefabParentObject: {fileID: 0} 161 | m_PrefabInternal: {fileID: 0} 162 | m_GameObject: {fileID: 647285047} 163 | m_Enabled: 1 164 | --- !u!20 &647285052 165 | Camera: 166 | m_ObjectHideFlags: 0 167 | m_PrefabParentObject: {fileID: 0} 168 | m_PrefabInternal: {fileID: 0} 169 | m_GameObject: {fileID: 647285047} 170 | m_Enabled: 1 171 | serializedVersion: 2 172 | m_ClearFlags: 1 173 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 174 | m_NormalizedViewPortRect: 175 | serializedVersion: 2 176 | x: 0 177 | y: 0 178 | width: 1 179 | height: 1 180 | near clip plane: 0.3 181 | far clip plane: 1000 182 | field of view: 60 183 | orthographic: 0 184 | orthographic size: 5 185 | m_Depth: 0 186 | m_CullingMask: 187 | serializedVersion: 2 188 | m_Bits: 4294967295 189 | m_RenderingPath: -1 190 | m_TargetTexture: {fileID: 0} 191 | m_TargetDisplay: 0 192 | m_TargetEye: 3 193 | m_HDR: 0 194 | m_AllowMSAA: 0 195 | m_AllowDynamicResolution: 0 196 | m_ForceIntoRT: 0 197 | m_OcclusionCulling: 0 198 | m_StereoConvergence: 10 199 | m_StereoSeparation: 0.022 200 | --- !u!4 &647285053 201 | Transform: 202 | m_ObjectHideFlags: 0 203 | m_PrefabParentObject: {fileID: 0} 204 | m_PrefabInternal: {fileID: 0} 205 | m_GameObject: {fileID: 647285047} 206 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 207 | m_LocalPosition: {x: 0, y: 0, z: 0} 208 | m_LocalScale: {x: 1, y: 1, z: 1} 209 | m_Children: [] 210 | m_Father: {fileID: 0} 211 | m_RootOrder: 0 212 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 213 | --- !u!1 &983781089 214 | GameObject: 215 | m_ObjectHideFlags: 0 216 | m_PrefabParentObject: {fileID: 0} 217 | m_PrefabInternal: {fileID: 0} 218 | serializedVersion: 5 219 | m_Component: 220 | - component: {fileID: 983781093} 221 | - component: {fileID: 983781092} 222 | - component: {fileID: 983781091} 223 | - component: {fileID: 983781090} 224 | - component: {fileID: 983781094} 225 | m_Layer: 0 226 | m_Name: Plane 227 | m_TagString: Untagged 228 | m_Icon: {fileID: 0} 229 | m_NavMeshLayer: 0 230 | m_StaticEditorFlags: 0 231 | m_IsActive: 1 232 | --- !u!23 &983781090 233 | MeshRenderer: 234 | m_ObjectHideFlags: 0 235 | m_PrefabParentObject: {fileID: 0} 236 | m_PrefabInternal: {fileID: 0} 237 | m_GameObject: {fileID: 983781089} 238 | m_Enabled: 1 239 | m_CastShadows: 1 240 | m_ReceiveShadows: 0 241 | m_DynamicOccludee: 0 242 | m_MotionVectors: 1 243 | m_LightProbeUsage: 1 244 | m_ReflectionProbeUsage: 1 245 | m_RenderingLayerMask: 4294967295 246 | m_Materials: 247 | - {fileID: 2100000, guid: adc6a5f81a4450e40aa8aa6448f6d98c, type: 2} 248 | m_StaticBatchInfo: 249 | firstSubMesh: 0 250 | subMeshCount: 0 251 | m_StaticBatchRoot: {fileID: 0} 252 | m_ProbeAnchor: {fileID: 0} 253 | m_LightProbeVolumeOverride: {fileID: 0} 254 | m_ScaleInLightmap: 1 255 | m_PreserveUVs: 1 256 | m_IgnoreNormalsForChartDetection: 0 257 | m_ImportantGI: 0 258 | m_StitchLightmapSeams: 0 259 | m_SelectedEditorRenderState: 3 260 | m_MinimumChartSize: 4 261 | m_AutoUVMaxDistance: 0.5 262 | m_AutoUVMaxAngle: 89 263 | m_LightmapParameters: {fileID: 0} 264 | m_SortingLayerID: 0 265 | m_SortingLayer: 0 266 | m_SortingOrder: 0 267 | --- !u!64 &983781091 268 | MeshCollider: 269 | m_ObjectHideFlags: 0 270 | m_PrefabParentObject: {fileID: 0} 271 | m_PrefabInternal: {fileID: 0} 272 | m_GameObject: {fileID: 983781089} 273 | m_Material: {fileID: 0} 274 | m_IsTrigger: 0 275 | m_Enabled: 1 276 | serializedVersion: 3 277 | m_Convex: 0 278 | m_CookingOptions: 14 279 | m_SkinWidth: 0.01 280 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 281 | --- !u!33 &983781092 282 | MeshFilter: 283 | m_ObjectHideFlags: 0 284 | m_PrefabParentObject: {fileID: 0} 285 | m_PrefabInternal: {fileID: 0} 286 | m_GameObject: {fileID: 983781089} 287 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 288 | --- !u!4 &983781093 289 | Transform: 290 | m_ObjectHideFlags: 0 291 | m_PrefabParentObject: {fileID: 0} 292 | m_PrefabInternal: {fileID: 0} 293 | m_GameObject: {fileID: 983781089} 294 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 295 | m_LocalPosition: {x: 0, y: 0, z: 0} 296 | m_LocalScale: {x: 10, y: 10, z: 10} 297 | m_Children: [] 298 | m_Father: {fileID: 0} 299 | m_RootOrder: 1 300 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 301 | --- !u!114 &983781094 302 | MonoBehaviour: 303 | m_ObjectHideFlags: 0 304 | m_PrefabParentObject: {fileID: 0} 305 | m_PrefabInternal: {fileID: 0} 306 | m_GameObject: {fileID: 983781089} 307 | m_Enabled: 1 308 | m_EditorHideFlags: 0 309 | m_Script: {fileID: 11500000, guid: ddccfe26fa8848f409d21c63bdc063a7, type: 3} 310 | m_Name: 311 | m_EditorClassIdentifier: 312 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Editor/CharacterEffectEditor.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f47d1be3e2635164f8698466fb7280f8 3 | timeCreated: 1505897408 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Editor/MyWindow.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | public class MyWindow : EditorWindow 4 | { 5 | string myString = "Hello World"; 6 | bool groupEnabled; 7 | bool myBool = true; 8 | float myFloat = 1.23f; 9 | 10 | // Add menu named "My Window" to the Window menu 11 | [MenuItem("Window/My Window")] 12 | static void Init() 13 | { 14 | // GUI.skin = AssetDatabase.LoadAssetAtPath("Assets/actionToolSkin",typeof(GUISkin)) as GUISkin; 15 | // Get existing open window or if none, make a new one: 16 | MyWindow window = (MyWindow)EditorWindow.GetWindow(typeof(MyWindow)); 17 | window.Show(); 18 | } 19 | 20 | void OnGUI() 21 | { 22 | GUILayout.Label("Base Settings", EditorStyles.boldLabel); 23 | myString = EditorGUILayout.TextField("Text Field", myString); 24 | 25 | groupEnabled = EditorGUILayout.BeginToggleGroup("Optional Settings", groupEnabled); 26 | myBool = EditorGUILayout.Toggle("Toggle", myBool); 27 | myFloat = EditorGUILayout.Slider("Slider", myFloat, -3, 3); 28 | EditorGUILayout.EndToggleGroup(); 29 | } 30 | } -------------------------------------------------------------------------------- /u3d/Assets/Scripts/Editor/MyWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d5d4748202be2b49af4d7ec7e7cb6f3 3 | timeCreated: 1505904615 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/TempSkillEditorCamera.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | 6 | public class TempSkillEditorCamera : MonoBehaviour 7 | { 8 | [SerializeField] 9 | public Transform m_Target; 10 | [SerializeField] 11 | public float offset_x = 7; 12 | [SerializeField] 13 | public float offset_y = 6; 14 | [SerializeField] 15 | public float offset_z = 6; 16 | 17 | void Update() 18 | { 19 | if(m_Target != null) 20 | { 21 | this.transform.localPosition = this.m_Target.localPosition + new Vector3(this.offset_x,this.offset_y,this.offset_z); 22 | this.transform.LookAt(this.m_Target); 23 | } 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/TempSkillEditorCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 996012592085e4a498b4bfddcd201d4c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/misc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 080c8694db1c4bb4ca762089d970a539 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/misc/MiniJSON.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013 Calvin Rien 3 | * 4 | * Based on the JSON parser by Patrick van Bergen 5 | * http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html 6 | * 7 | * Simplified it so that it doesn't throw exceptions 8 | * and can be used in Unity iPhone with maximum code stripping. 9 | * 10 | * Permission is hereby granted, free of charge, to any person obtaining 11 | * a copy of this software and associated documentation files (the 12 | * "Software"), to deal in the Software without restriction, including 13 | * without limitation the rights to use, copy, modify, merge, publish, 14 | * distribute, sublicense, and/or sell copies of the Software, and to 15 | * permit persons to whom the Software is furnished to do so, subject to 16 | * the following conditions: 17 | * 18 | * The above copyright notice and this permission notice shall be 19 | * included in all copies or substantial portions of the Software. 20 | * 21 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 23 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 24 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 26 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 27 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 28 | */ 29 | using System; 30 | using System.Collections; 31 | using System.Collections.Generic; 32 | using System.IO; 33 | using System.Text; 34 | 35 | namespace MiniJSON { 36 | // Example usage: 37 | // 38 | // using UnityEngine; 39 | // using System.Collections; 40 | // using System.Collections.Generic; 41 | // using MiniJSON; 42 | // 43 | // public class MiniJSONTest : MonoBehaviour { 44 | // void Start () { 45 | // var jsonString = "{ \"array\": [1.44,2,3], " + 46 | // "\"object\": {\"key1\":\"value1\", \"key2\":256}, " + 47 | // "\"string\": \"The quick brown fox \\\"jumps\\\" over the lazy dog \", " + 48 | // "\"unicode\": \"\\u3041 Men\u00fa sesi\u00f3n\", " + 49 | // "\"int\": 65536, " + 50 | // "\"float\": 3.1415926, " + 51 | // "\"bool\": true, " + 52 | // "\"null\": null }"; 53 | // 54 | // var dict = Json.Deserialize(jsonString) as Dictionary; 55 | // 56 | // Debug.Log("deserialized: " + dict.GetType()); 57 | // Debug.Log("dict['array'][0]: " + ((List) dict["array"])[0]); 58 | // Debug.Log("dict['string']: " + (string) dict["string"]); 59 | // Debug.Log("dict['float']: " + (double) dict["float"]); // floats come out as doubles 60 | // Debug.Log("dict['int']: " + (long) dict["int"]); // ints come out as longs 61 | // Debug.Log("dict['unicode']: " + (string) dict["unicode"]); 62 | // 63 | // var str = Json.Serialize(dict); 64 | // 65 | // Debug.Log("serialized: " + str); 66 | // } 67 | // } 68 | 69 | /// 70 | /// This class encodes and decodes JSON strings. 71 | /// Spec. details, see http://www.json.org/ 72 | /// 73 | /// JSON uses Arrays and Objects. These correspond here to the datatypes IList and IDictionary. 74 | /// All numbers are parsed to doubles. 75 | /// 76 | public static class Json { 77 | /// 78 | /// Parses the string json into a value 79 | /// 80 | /// A JSON string. 81 | /// An List<object>, a Dictionary<string, object>, a double, an integer,a string, null, true, or false 82 | public static object Deserialize(string json) { 83 | // save the string for debug information 84 | if (json == null) { 85 | return null; 86 | } 87 | 88 | return Parser.Parse(json); 89 | } 90 | 91 | sealed class Parser : IDisposable { 92 | const string WORD_BREAK = "{}[],:\""; 93 | 94 | public static bool IsWordBreak(char c) { 95 | return Char.IsWhiteSpace(c) || WORD_BREAK.IndexOf(c) != -1; 96 | } 97 | 98 | const string HEX_DIGIT = "0123456789ABCDEFabcdef"; 99 | 100 | public static bool IsHexDigit(char c) { 101 | return HEX_DIGIT.IndexOf(c) != -1; 102 | } 103 | 104 | enum TOKEN { 105 | NONE, 106 | CURLY_OPEN, 107 | CURLY_CLOSE, 108 | SQUARED_OPEN, 109 | SQUARED_CLOSE, 110 | COLON, 111 | COMMA, 112 | STRING, 113 | NUMBER, 114 | TRUE, 115 | FALSE, 116 | NULL 117 | }; 118 | 119 | StringReader json; 120 | 121 | Parser(string jsonString) { 122 | json = new StringReader(jsonString); 123 | } 124 | 125 | public static object Parse(string jsonString) { 126 | using (var instance = new Parser(jsonString)) { 127 | return instance.ParseValue(); 128 | } 129 | } 130 | 131 | public void Dispose() { 132 | json.Dispose(); 133 | json = null; 134 | } 135 | 136 | Dictionary ParseObject() { 137 | Dictionary table = new Dictionary(); 138 | 139 | // ditch opening brace 140 | json.Read(); 141 | 142 | // { 143 | while (true) { 144 | switch (NextToken) { 145 | case TOKEN.NONE: 146 | return null; 147 | case TOKEN.COMMA: 148 | continue; 149 | case TOKEN.CURLY_CLOSE: 150 | return table; 151 | case TOKEN.STRING: 152 | // name 153 | string name = ParseString(); 154 | if (name == null) { 155 | return null; 156 | } 157 | 158 | // : 159 | if (NextToken != TOKEN.COLON) { 160 | return null; 161 | } 162 | // ditch the colon 163 | json.Read(); 164 | 165 | // value 166 | TOKEN valueToken = NextToken; 167 | object value = ParseByToken(valueToken); 168 | if(value==null && valueToken!=TOKEN.NULL) 169 | return null; 170 | table[name] = value; 171 | break; 172 | default: 173 | return null; 174 | } 175 | } 176 | } 177 | 178 | List ParseArray() { 179 | List array = new List(); 180 | 181 | // ditch opening bracket 182 | json.Read(); 183 | 184 | // [ 185 | var parsing = true; 186 | while (parsing) { 187 | TOKEN nextToken = NextToken; 188 | 189 | switch (nextToken) { 190 | case TOKEN.NONE: 191 | return null; 192 | case TOKEN.COMMA: 193 | continue; 194 | case TOKEN.SQUARED_CLOSE: 195 | parsing = false; 196 | break; 197 | default: 198 | object value = ParseByToken(nextToken); 199 | if(value==null && nextToken!=TOKEN.NULL) 200 | return null; 201 | array.Add(value); 202 | break; 203 | } 204 | } 205 | 206 | return array; 207 | } 208 | 209 | object ParseValue() { 210 | TOKEN nextToken = NextToken; 211 | return ParseByToken(nextToken); 212 | } 213 | 214 | object ParseByToken(TOKEN token) { 215 | switch (token) { 216 | case TOKEN.STRING: 217 | return ParseString(); 218 | case TOKEN.NUMBER: 219 | return ParseNumber(); 220 | case TOKEN.CURLY_OPEN: 221 | return ParseObject(); 222 | case TOKEN.SQUARED_OPEN: 223 | return ParseArray(); 224 | case TOKEN.TRUE: 225 | return true; 226 | case TOKEN.FALSE: 227 | return false; 228 | case TOKEN.NULL: 229 | return null; 230 | default: 231 | return null; 232 | } 233 | } 234 | 235 | string ParseString() { 236 | StringBuilder s = new StringBuilder(); 237 | char c; 238 | 239 | // ditch opening quote 240 | json.Read(); 241 | 242 | bool parsing = true; 243 | while (parsing) { 244 | 245 | if (json.Peek() == -1) { 246 | parsing = false; 247 | break; 248 | } 249 | 250 | c = NextChar; 251 | switch (c) { 252 | case '"': 253 | parsing = false; 254 | break; 255 | case '\\': 256 | if (json.Peek() == -1) { 257 | parsing = false; 258 | break; 259 | } 260 | 261 | c = NextChar; 262 | switch (c) { 263 | case '"': 264 | case '\\': 265 | case '/': 266 | s.Append(c); 267 | break; 268 | case 'b': 269 | s.Append('\b'); 270 | break; 271 | case 'f': 272 | s.Append('\f'); 273 | break; 274 | case 'n': 275 | s.Append('\n'); 276 | break; 277 | case 'r': 278 | s.Append('\r'); 279 | break; 280 | case 't': 281 | s.Append('\t'); 282 | break; 283 | case 'u': 284 | var hex = new char[4]; 285 | 286 | for (int i=0; i< 4; i++) { 287 | hex[i] = NextChar; 288 | if (!IsHexDigit(hex[i])) 289 | return null; 290 | } 291 | 292 | s.Append((char) Convert.ToInt32(new string(hex), 16)); 293 | break; 294 | } 295 | break; 296 | default: 297 | s.Append(c); 298 | break; 299 | } 300 | } 301 | 302 | return s.ToString(); 303 | } 304 | 305 | object ParseNumber() { 306 | string number = NextWord; 307 | 308 | if (number.IndexOf('.') == -1 && number.IndexOf('E') == -1 && number.IndexOf('e') == -1) { 309 | long parsedInt; 310 | Int64.TryParse(number, System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out parsedInt); 311 | return parsedInt; 312 | } 313 | 314 | double parsedDouble; 315 | Double.TryParse(number, System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out parsedDouble); 316 | return parsedDouble; 317 | } 318 | 319 | void EatWhitespace() { 320 | while (Char.IsWhiteSpace(PeekChar)) { 321 | json.Read(); 322 | 323 | if (json.Peek() == -1) { 324 | break; 325 | } 326 | } 327 | } 328 | 329 | char PeekChar { 330 | get { 331 | return Convert.ToChar(json.Peek()); 332 | } 333 | } 334 | 335 | char NextChar { 336 | get { 337 | return Convert.ToChar(json.Read()); 338 | } 339 | } 340 | 341 | string NextWord { 342 | get { 343 | StringBuilder word = new StringBuilder(); 344 | 345 | while (!IsWordBreak(PeekChar)) { 346 | word.Append(NextChar); 347 | 348 | if (json.Peek() == -1) { 349 | break; 350 | } 351 | } 352 | 353 | return word.ToString(); 354 | } 355 | } 356 | 357 | TOKEN NextToken { 358 | get { 359 | EatWhitespace(); 360 | 361 | if (json.Peek() == -1) { 362 | return TOKEN.NONE; 363 | } 364 | 365 | switch (PeekChar) { 366 | case '{': 367 | return TOKEN.CURLY_OPEN; 368 | case '}': 369 | json.Read(); 370 | return TOKEN.CURLY_CLOSE; 371 | case '[': 372 | return TOKEN.SQUARED_OPEN; 373 | case ']': 374 | json.Read(); 375 | return TOKEN.SQUARED_CLOSE; 376 | case ',': 377 | json.Read(); 378 | return TOKEN.COMMA; 379 | case '"': 380 | return TOKEN.STRING; 381 | case ':': 382 | return TOKEN.COLON; 383 | case '0': 384 | case '1': 385 | case '2': 386 | case '3': 387 | case '4': 388 | case '5': 389 | case '6': 390 | case '7': 391 | case '8': 392 | case '9': 393 | case '-': 394 | return TOKEN.NUMBER; 395 | } 396 | 397 | switch (NextWord) { 398 | case "false": 399 | return TOKEN.FALSE; 400 | case "true": 401 | return TOKEN.TRUE; 402 | case "null": 403 | return TOKEN.NULL; 404 | } 405 | 406 | return TOKEN.NONE; 407 | } 408 | } 409 | } 410 | 411 | /// 412 | /// Converts a IDictionary / IList object or a simple type (string, int, etc.) into a JSON string 413 | /// 414 | /// A Dictionary<string, object> / List<object> 415 | /// A JSON encoded string, or null if object 'json' is not serializable 416 | public static string Serialize(object obj) { 417 | return Serializer.Serialize(obj); 418 | } 419 | 420 | sealed class Serializer { 421 | StringBuilder builder; 422 | 423 | Serializer() { 424 | builder = new StringBuilder(); 425 | } 426 | 427 | public static string Serialize(object obj) { 428 | var instance = new Serializer(); 429 | 430 | instance.SerializeValue(obj); 431 | 432 | return instance.builder.ToString(); 433 | } 434 | 435 | void SerializeValue(object value) { 436 | IList asList; 437 | IDictionary asDict; 438 | string asStr; 439 | 440 | if (value == null) { 441 | builder.Append("null"); 442 | } else if ((asStr = value as string) != null) { 443 | SerializeString(asStr); 444 | } else if (value is bool) { 445 | builder.Append((bool) value ? "true" : "false"); 446 | } else if ((asList = value as IList) != null) { 447 | SerializeArray(asList); 448 | } else if ((asDict = value as IDictionary) != null) { 449 | SerializeObject(asDict); 450 | } else if (value is char) { 451 | SerializeString(new string((char) value, 1)); 452 | } else { 453 | SerializeOther(value); 454 | } 455 | } 456 | 457 | void SerializeObject(IDictionary obj) { 458 | bool first = true; 459 | 460 | builder.Append('{'); 461 | 462 | foreach (object e in obj.Keys) { 463 | if (!first) { 464 | builder.Append(','); 465 | } 466 | 467 | SerializeString(e.ToString()); 468 | builder.Append(':'); 469 | 470 | SerializeValue(obj[e]); 471 | 472 | first = false; 473 | } 474 | 475 | builder.Append('}'); 476 | } 477 | 478 | void SerializeArray(IList anArray) { 479 | builder.Append('['); 480 | 481 | bool first = true; 482 | 483 | for (int i=0; i= 32) && (codepoint <= 126)) { 528 | builder.Append(c); 529 | } else { 530 | builder.Append("\\u"); 531 | builder.Append(codepoint.ToString("x4")); 532 | } 533 | break; 534 | } 535 | } 536 | 537 | builder.Append('\"'); 538 | } 539 | 540 | void SerializeOther(object value) { 541 | // NOTE: decimals lose precision during serialization. 542 | // They always have, I'm just letting you know. 543 | // Previously floats and doubles lost precision too. 544 | if (value is float) { 545 | builder.Append(((float) value).ToString("R", System.Globalization.CultureInfo.InvariantCulture)); 546 | } else if (value is int 547 | || value is uint 548 | || value is long 549 | || value is sbyte 550 | || value is byte 551 | || value is short 552 | || value is ushort 553 | || value is ulong) { 554 | builder.Append(value); 555 | } else if (value is double 556 | || value is decimal) { 557 | builder.Append(Convert.ToDouble(value).ToString("R", System.Globalization.CultureInfo.InvariantCulture)); 558 | } else { 559 | SerializeString(value.ToString()); 560 | } 561 | } 562 | } 563 | } 564 | } 565 | -------------------------------------------------------------------------------- /u3d/Assets/Scripts/misc/MiniJSON.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04e0f534e56f3804aa6905c569e9e514 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /u3d/Assets/data.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8cdd1a067b320b74d90011f159307bff 3 | folderAsset: yes 4 | timeCreated: 1505981546 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /u3d/Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | } 4 | } 5 | -------------------------------------------------------------------------------- /u3d/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/PresetManager.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.1.7f1 2 | -------------------------------------------------------------------------------- /u3d/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /u3d/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzexi/Unity3DCharacterEffectEditor/d28b67d28faf452839710f2346bf21dc9ee9a753/u3d/ProjectSettings/UnityConnectSettings.asset --------------------------------------------------------------------------------