Skip to content

LeanTween animation engine #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
6 changes: 0 additions & 6 deletions GUI-Button.sublime-snippet

This file was deleted.

6 changes: 0 additions & 6 deletions GUI-Label.sublime-snippet

This file was deleted.

6 changes: 0 additions & 6 deletions GUI-PasswordFeild.sublime-snippet

This file was deleted.

6 changes: 0 additions & 6 deletions GUI-RepeatButton.sublime-snippet

This file was deleted.

6 changes: 0 additions & 6 deletions GUI-TextArea.sublime-snippet

This file was deleted.

6 changes: 0 additions & 6 deletions GUI-TextFeild.sublime-snippet

This file was deleted.

6 changes: 6 additions & 0 deletions LeanTween-Alpha-C.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.alpha newOpacity</description>
<content><![CDATA[LeanTween.alpha(${1:GameObject go}, ${2:float to}, ${3:float speed} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.cs</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-Alpha.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.alpha newOpacity</description>
<content><![CDATA[LeanTween.alpha(${1:go:GameObject}, ${2:to:float}, ${3:speed:float});]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.js</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-Move-C.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.move position:Vector3</description>
<content><![CDATA[LeanTween.move(${1:GameObject go}, ${2:Vector3 to}, ${3:float speed} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.cs</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-Move.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.move position:Vector3</description>
<content><![CDATA[LeanTween.move(${1:go:GameObject}, ${2:to:Vector3}, ${3:speed:float});]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.js</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-MoveLocal-C.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.moveLocal position:Vector3</description>
<content><![CDATA[LeanTween.moveLocal(${1:GameObject go}, ${2:Vector3 to}, ${3:float speed} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.cs</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-MoveLocal.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.moveLocal position:Vector3</description>
<content><![CDATA[LeanTween.moveLocal(${1:go:GameObject}, ${2:to:Vector3}, ${3:speed:float} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.js</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-Rotate-C.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.rotate euler angles:Vector3</description>
<content><![CDATA[LeanTween.rotate(${1:GameObject go}, ${2:Vector3 to}, ${3:float speed} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.cs</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-Rotate.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.rotate euler angles:Vector3</description>
<content><![CDATA[LeanTween.rotate(${1:go:gameObject}, ${2:to:Vector3}, ${3:speed:float} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.js</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-RotateAround-C.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.rotateAround euler angle:float</description>
<content><![CDATA[LeanTween.rotateAround(${1:GameObject go}, ${2:Vector3 onAxis}, ${3:float degrees}, ${4:float speed} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.cs</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-RotateAround.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.rotateAround euler angle:float</description>
<content><![CDATA[LeanTween.rotateAround(${1:go:gameObject}, ${2:onAxis:Vector3}, ${3:degrees:float}, ${4:speed:float} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.js</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-RotateLocal-C.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.rotateLocal euler local</description>
<content><![CDATA[LeanTween.rotateLocal(${1:GameObject go}, ${2:Vector3 to}, ${3:float speed} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.cs</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-RotateLocal.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.rotateLocal euler local</description>
<content><![CDATA[LeanTween.rotateLocal(${1:go:gameObject}, ${2:to:Vector3}, ${3:speed:float} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.js</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-Scale-C.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.scale newScale:Vector3</description>
<content><![CDATA[LeanTween.scale(${1:GameObject go}, ${2:Vector3 to}, ${3:float speed} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.cs</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-Scale.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.scale newScale:Vector3</description>
<content><![CDATA[LeanTween.scale(${1:go:gameObject}, ${2:to:Vector3}, ${3:speed:float} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.js</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-Value-C.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.value call function with tween value</description>
<content><![CDATA[LeanTween.value(${1:GameObject go}, ${2:String callbackName}, ${3:float speed} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.cs</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-Value.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.value call function with tween value</description>
<content><![CDATA[LeanTween.value(${1:gameObject:GameObject}, ${2:callback:Function}, ${3:speed:float} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.js</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-delayedCall-GameObject-C.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.delayedCall gameObject</description>
<content><![CDATA[LeanTween.delayedCall(${1:GameObject go}, ${2:float delayTime}, ${3:String callbackName}, ${4:float speed} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.cs</scope>
</snippet>
6 changes: 6 additions & 0 deletions LeanTween-delayedCall-GameObject.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<description>LeanTween.delayedCall gameObject</description>
<content><![CDATA[LeanTween.delayedCall(${1:gameObject:GameObject}, ${2:delayTime:float}, ${3:callback:Function}, ${4:speed:float} );]]></content>
<tabTrigger>LeanTween</tabTrigger>
<scope>source.js</scope>
</snippet>
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# Unity3D Snippets and Completes
# Unity3d Autocompletion for LeanTween
#### for [Sublime Text 2](http://www.sublimetext.com/2)

## About
This sublime Text 2 package adds a number of helpful snippets and completes for working with Unity3D.
This sublime Text 2 package adds a number of helpful snippets for the [LeanTween animation engine](http://u3d.as/content/dented-pixel/lean-tween/31i)

## Usage
Current not so many have really been added just a couple of the GUI functions.
Typing the tab trigger "gui" will give you quick access to the 6 most used GUI functions.
Provided are the most commonly used LeanTween methods (but there are many more that aren't shown to cut down on clutter)
Typing the tab trigger "LeanTween" will give you quick access to the most commonly used LeanTween functions.

Please feel free to fork this package and add your own snippets. I will try to add a few more each day until many of the Unity functions are covered.

## Install

Expand All @@ -19,12 +18,12 @@ The easiest way to install this is with [Package Control](http://wbond.net/subli
* If you just went and installed Package Control, you probably need to restart Sublime Text 2 before doing this next bit.
* Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
* Select "Package Control: Install Package" (it'll take a few seconds)
* Select Unity3D Snippets and Completes when the list appears.
* Select Unity3d Autocomplete for LeanTween when the list appears.

Package Control will automatically keep Git up to date with the latest version.

If you have some problems or improvements with it, contact me via GitHub.


## Author
[Jacob Pennock](http://jacobpennock.com)
[Russell Savage](http://dentedpixel.com)