398 Commits

Author SHA1 Message Date
John
f71afac880 [unity] SkeletonUtilityBoneInspector cleanup+fixes 2016-08-15 20:18:09 +08:00
pharan
384889cf7a [unity] Fix Drag and Drop menu for SkeletonGraphic + hierarchy icons. 2016-08-09 19:51:50 +08:00
John
205c65e8d8 [unity] Add hierarchy icons to prefs. 2016-08-08 21:27:50 +08:00
pharan
a2abf956be [unity] Mark and make hierarchy icons easy to opt-out for users with complex scenes. 2016-08-05 18:31:24 +08:00
pharan
35a7a7be76 [unity] Fix SkeletonRenderSeparator edit mode refresh. 2016-08-05 18:30:14 +08:00
John
edc8f6e908 [unity] Fix SkeletonDataAssetInspector GUILayout 2016-08-02 21:37:10 +08:00
pharan
18d7229b5d [Unity] Fix SkeletonGraphic incompatible version fallback. 2016-08-02 16:30:21 +08:00
pharan
0434398b36 [unity] Drag n drop now uses RectTransform plane if selected (for UI) + minor fixes. 2016-08-01 09:12:40 +08:00
pharan
bd7ad96bc6 [unity] Don't import atlas textures as Unity Sprites by default. 2016-07-31 22:26:40 +08:00
pharan
395dc5b345 [unity] Drag n drop to Scene View context menu for all types. 2016-07-31 22:09:28 +08:00
pharan
870bda40b7 [unity] Basic drag n drop SkeletonDataAsset to Scene View. 2016-07-31 19:58:50 +08:00
pharan
64ec35a1ac [unity] Added missing event data to Raptor sample skeleton. 2016-07-31 18:18:29 +08:00
pharan
b36d1e9e02 [unity] Fix [SpineAttachment] not fully using dataField to find ISkeletonComponent. Minor fixes. 2016-07-31 18:17:46 +08:00
pharan
11a6717db2 [unity] Handle changed API in Unity 5.4 2016-07-31 09:33:13 +08:00
pharan
af9085a07e [unity] SpineEditorUtilities, handle low memory unloading assets in stack + new preferences items. 2016-07-31 09:31:51 +08:00
pharan
e23bec8ddb [unity] Unified interfaces for Skeleton instance components. Used by SpineAttributeDrawers. 2016-07-27 05:40:33 +08:00
John
a7661270c0 [unity] BoneFollower same-GameObject editor guard. 2016-07-23 00:27:58 +08:00
John
afffdbe383 [unity] Fixed addTangents field. 2016-07-22 04:20:55 +08:00
pharan
c744c9a7d7 [unity] Minor editor changes. 2016-07-21 22:32:33 +08:00
Alexander Brazie
5532ca290d [Unity] Added BoundingBoxFollower.isTrigger (#635)
* Added isTrigger variable to bounding box followers

IsTrigger added to bounding box follower.

* Added isTrigger variable to bounding box followers

Same as the last one.
2016-07-21 22:24:20 +08:00
John
77c4cdc1e4 [unity] SkeletonRenderer Update (Tangents, MeshGeneration) (#646) 2016-07-21 22:23:21 +08:00
John
791b0a3b2f [unity] Reduced foreach use in SkeletonUtility. 2016-07-16 23:55:59 +08:00
pharan
5611de296d [unity] Minor SkeletonGraphic fixes. 2016-07-15 14:44:23 +08:00
pharan
0e883f3e3c [unity] BoneFollower.followSkeletonFlip 2016-07-15 14:22:30 +08:00
John
7e5aa7db2b [unity] Update compatibility message.
Spine 3.4 was a major launcher and editor update but required no runtime changes.
2016-07-13 22:57:29 +08:00
badlogic
17a08e674c [c][sfml][cocos2d-objc][cocos2d-x][csharp][monogame][xna][unity] Updated README.mds to reflect version compatibility 2016-07-12 17:07:30 +02:00
John
5e08751fb8 [spine-unity] Fix BoundingBoxFollower type check.
Slots that are set to an `Attachment` that is not a `BoundingBoxAttachment` will treat it as null instead of ignoring it or throwing an exception.
2016-07-11 10:13:57 +08:00
John
2fdd820da0 [spine-unity] SkeletonRenderer fix null 1st material. 2016-07-11 09:53:30 +08:00
John
d6dc425817 [spine-unity] Clarify BoundingBoxFollower behavior in editor. (#630) 2016-07-11 09:40:38 +08:00
John
c7b6966055 [spine-unity] Better BoneFollower editor warnings. 2016-07-05 16:12:21 +08:00
pharan
94df4cb5be [spine-unity] Fix SkeletonDataAsset inspector error on recompile. 2016-07-05 15:22:11 +08:00
John
bde07221b3 [spine-unity] Fix SkeletonGhostRenderer namespace. 2016-07-05 05:15:17 +08:00
pharan
ebd8831a17 [spine-unity] 3.3 changes to TK2D code + better default scale. 2016-07-04 13:58:34 +08:00
John
1c19365325 [csharp][monogame][unity][xna] Updated to 3.3.x (#623)
* [spine-csharp] Ported 3.3 changes of Animation and inner classes. Added MathUtils.Clamp

* [spine-csharp] Ported 3.3 changes of AnimationStateData. Updated .gitignore to exclude .meta files from spine-csharp

* [spine-csharp] Ported 3.3 changes of Bone

* [spine-csharp] Ported 3.3 changes of BoneData

* [spine-csharp] Ported 3.3 changes of Event

* [spine-csharp] Ported 3.3 changes to IKConstraint. Also got rid of the hideous labeled break. Replaced with while and sprinkled continues and break :D

* [spine-csharp] Mario is not good with labeled breaks. Fixed with goto

* [spine-csharp] Ported more 3.3 changes, only SkeletonJson and SkeletonBinary left. Unity runtime also needs updating with new changes

* [spine-csharp] fixed compilation errors initially not reported by Mono CS

* Minor clean up.

Every space has its place.™

* Match csharp 3.3 refactorings.

* [Unity] Minor cleanup in SkeletonBaker.

* Better exception messages.

* Removed extra usings. Matched whitespace style.

* Fixed Bone.cs method PascalCase and xml documentation.

* Fixed Exception ctor arguments.

* Fixed single bone IK mixing.

Matched libgdx commit:
e0ee18a088

* [spine-csharp] Port of 3.3 changes to SkeletonJson, incomplete

* [Unity] Ragdoll: account for shear and new constraints.

* [spine-csharp] Ported 3.3 changes to SkeletonJson

* [spine-csharp] Ported 3.3 changes to SkeletonBinary. Time for testing and debugging

* [spine-csharp] Fixed up XNA runtime

* Added simple example data in new exports/ folder

* [spine-csharp] Fixed bug in Slot construtor, wasn't assigning index. Fixed bug in CurveTimeline, argument guard was wrong. Fixed bugs in SkeletonJson, indexing to get duration of a timeline was wrong. Added simple example to spine-xna for easier debugging

* [spine-csharp] Fixed porting bug in ColorTimeline#apply, indexing was wrong

* [spine-csharp] Fixed SkeletonJson#ReadVertices, calling resize on temp lists was wrong. Updated goblin sample in spine-xna, fixed mesh attachment rendering in spine-xna.

* [spine-xna] Added binary exports, modified XNA game

* [spine-xna] Added tank example

* Some cleanup. Relabeled generic todos.

* Prevent SpineEditorUtilities from orphaning failed instantiations.

* Ignore PathAttachment when checking for required atlas regions.

* [spine-csharp] the great spaces to tabs battle

* [spine-csharp] Fixed inherit deform.

* [spine-csharp] Match Skeleton.java properties and stuff.

* [spine-csharp] Fixed enums, all upper cased now, using Enum.ParseType in case-insensitive mode

* [csharp] Ported 206e7f983c4df4d27fee6cac05d152eb2295c8b0 to csharp runtime. Fixes attachment keys on different tracks

* [csharp] Updated README.md

* [xna] [monogame] [unity] Updated README.md

* Revert "[csharp] Ported 206e7f983c4df4d27fee6cac05d152eb2295c8b0 to csharp runtime. Fixes attachment keys on different tracks"

This reverts commit 175216868dd00b4ae31cc717022242308c150f6a.

* [csharp] Fix to AttachmentTimeline#apply, fix for the fix for the fix for the revert for the fix

* [csharp] Matched and fixed more comments, summaries, exception messages and formatting.

* [csharp] Fix deformed weighted vertices condition + match libgdx closer.

* [csharp] Use internal ExposedList array for critical methods.

* [csharp] SkeletonJson and SkeletonBinary minor formatting and fixes.

* [unity] Match changes and fixes in spine-csharp 3.3 + better editor messages.

* [unity] Updated sample scenes and files.

* [csharp] Some formatting got left behind.

* [unity] New readme links + Removed redundant info.

* [exports] Remove dummy project.
2016-06-30 04:29:33 +08:00
John
64aa883486 [Unity] Remove buggy fog from default shader. 2016-06-25 02:05:27 +08:00
Denis Novozhilov
290538752a [Unity] Fix SpriteAttacher for pivots outside sprite.
The case here is as follows:
 - create random unity sprite prefab
 - place sprite's pivot point outside of the sprite (say, pivot U is 2.53 and pivot V is -1.22)
 - try to attach this sprite via the SpriteAttacher script

Expected result here would be seeing the sprite sticking with it's pivot point to the placeholder.
Actual result here looks like the sprite's pivot point is somewhere in U: 1 and V: 0.

The bug is caused by Mathf.InverseLerp - it just cannot return values outside of [0; 1] range.

So the solution would be to make our own version of InverseLerp, which handles such situations correctly.
2016-06-25 00:10:08 +08:00
NathanSweet
e834982b49 Updated READMEs for v3.3 support. 2016-06-20 19:26:05 +02:00
John
21b8a03ccd [Unity] Update BoneFollower 2016-06-17 18:17:57 +08:00
pharan
16011c2eb1 [Unity] Update BoneFollower 2016-06-16 15:44:46 +08:00
John
c311a5aa2e [Unity] Fix SkeletonUtility debug bone scale. 2016-06-12 10:39:15 +08:00
John
5cceb22406 [unity/tk2d] Update editor code. Some cleanup and fixes. (#608)
* Initial cleanup and review.

* More cleanup and review.

* Removed missing atlas warnings for TK2D. Better button labels. Separated specialized/utility shaders.

* Clearer wording. More checks.

* Fix for Inspector reflowing between GUI events.

* Basic TK2D warning message.

* Fix play buttons. Removed useless reimport button for TK2D. Minor fixes.
2016-06-10 16:40:10 +08:00
John
f1406e2f85 Update spine-csharp to v3.2 (shearing) (#562)
* spine-csharp updated to 3.2.00.

* Some cleanup, catchup and fixes.

* Mix transform constraint scale and shear offsets.

* Update readmes.

* Clean up.

* Formatting.

* Fixed single bone IK with nonuniform scale. Improved two bone IK.
2016-06-01 02:25:30 +02:00
John
4b9d1b4f69 [Unity] Ragdoll fix (#596)
* Initial cleanup.
* More cleanup and debugging. Not fixed yet, but core task identified (probably).
* [Unity] Fixed Ragdoll2D and copied to 3D.
2016-06-01 00:05:08 +08:00
John
b6e502d653 [Unity] SkeletonDataAssetInspector minor fixes. 2016-05-31 19:33:02 +08:00
John
a2729ce3d0 Opt-in C# events for SkeletonAnimator. 2016-05-19 11:18:52 +08:00
John
dba0245753 Opt-in C# events for SkeletonAnimator. 2016-05-19 11:03:42 +08:00
John
0b00800e39 [Unity] Update basic json validity check. 2016-05-13 13:03:33 +08:00
John
e5b36f4180 [Unity] Update serialized custom materials
* SkeletonRendererCustomMaterials: correctly reapply changes when slot name changes (#554)
* Made sure private methods are private. Editor uses reflection.
* Also removed public properties.
2016-05-13 12:47:02 +08:00
pharan
4a36a95f06 [Unity] Remove dynamic meshes in prefabs by default. 2016-05-12 13:31:25 +08:00
John
f695cf19c2 [Unity] Fixed no renderables causing errors. 2016-05-09 03:18:07 +08:00