Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Fung Kin Chun authored and Fung Kin Chun committed Oct 24, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
0 parents commit c880a8b
Showing 64 changed files with 31,190 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/

# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
/[Mm]emoryCaptures/

# Asset meta data should only be ignored when the corresponding asset is also ignored
!/[Aa]ssets/**/*.meta

# Uncomment this line if you wish to ignore the asset store tools plugin
# /[Aa]ssets/AssetStoreTools*

# Autogenerated Jetbrains Rider plugin
/[Aa]ssets/Plugins/Editor/JetBrains*

# Visual Studio cache directory
.vs/

# Gradle cache directory
.gradle/

# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db

# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta

# Unity3D generated file on crash reports
sysinfo.txt

# Builds
*.apk
*.aab
*.unitypackage

# Crashlytics generated file
crashlytics-build.properties

# Packed Addressables
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*

# Temporary auto-generated Android Assets
/[Aa]ssets/[Ss]treamingAssets/aa.meta
/[Aa]ssets/[Ss]treamingAssets/aa/*
56 changes: 56 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"files.exclude":
{
"**/.DS_Store":true,
"**/.git":true,
"**/.gitignore":true,
"**/.gitmodules":true,
"**/*.booproj":true,
"**/*.pidb":true,
"**/*.suo":true,
"**/*.user":true,
"**/*.userprefs":true,
"**/*.unityproj":true,
"**/*.dll":true,
"**/*.exe":true,
"**/*.pdf":true,
"**/*.mid":true,
"**/*.midi":true,
"**/*.wav":true,
"**/*.gif":true,
"**/*.ico":true,
"**/*.jpg":true,
"**/*.jpeg":true,
"**/*.png":true,
"**/*.psd":true,
"**/*.tga":true,
"**/*.tif":true,
"**/*.tiff":true,
"**/*.3ds":true,
"**/*.3DS":true,
"**/*.fbx":true,
"**/*.FBX":true,
"**/*.lxo":true,
"**/*.LXO":true,
"**/*.ma":true,
"**/*.MA":true,
"**/*.obj":true,
"**/*.OBJ":true,
"**/*.asset":true,
"**/*.cubemap":true,
"**/*.flare":true,
"**/*.mat":true,
"**/*.meta":true,
"**/*.prefab":true,
"**/*.unity":true,
"build/":true,
"Build/":true,
"Library/":true,
"library/":true,
"obj/":true,
"Obj/":true,
"ProjectSettings/":true,
"temp/":true,
"Temp/":true
}
}
8 changes: 8 additions & 0 deletions Assets/AC2.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/AC2/Libraries.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/AC2/Libraries/Antlr3.Runtime.dll
Binary file not shown.
33 changes: 33 additions & 0 deletions Assets/AC2/Libraries/Antlr3.Runtime.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
33 changes: 33 additions & 0 deletions Assets/AC2/Libraries/SilverlightANTLR-runtime-csharp.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/AC2/Libraries/YamlDotNet.dll
Binary file not shown.
33 changes: 33 additions & 0 deletions Assets/AC2/Libraries/YamlDotNet.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions Assets/AC2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# AnimatorController as Code (AC2)
AC2 is a Unity plugin to convert a YAML template to an AnimatorController asset.
## Features
Besides generating a AnimatorController from code, AC2 also offers:
1. Generating transition animations
2. Generating AnimationEvents
3. Link Assets by Path
4. Very light weight because AC2 uses native Unity classes
5. Works well with animations from Adobe mixamo.
## Hollo World
```
name: GeneratedAC2AnimatorController
saveTo: Assets/Resources/Animators
controller:
layers:
- name: Base Layer
stateMachine:
name: Root
stateMachines:
- stateMachine:
name: Idle
states:
- state:
name: Idle
speed: 1
motion:
!AssetRef
path: Animations/Idle
transitions:
- hasExitTime: true
```
Output:


## Usage
Add **Creator** to an empty game object.
7 changes: 7 additions & 0 deletions Assets/AC2/README.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/AC2/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions Assets/AC2/Scripts/AC2AnimationClip.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using UnityEditor.Animations;

namespace AC2
{
public class AC2AnimationClip
{
public string name;

public string path;
public float length;
public AC2AnimationEvent[] events;
}
}
11 changes: 11 additions & 0 deletions Assets/AC2/Scripts/AC2AnimationClip.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions Assets/AC2/Scripts/AC2AnimationEvent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using UnityEditor.Animations;

namespace AC2
{
public class AC2AnimationEvent
{
public float floatParameter;
public string functionName;
public int intParameter;
public string objectReferenceParameter;
public string stringParameter;
public string time;
}
}
11 changes: 11 additions & 0 deletions Assets/AC2/Scripts/AC2AnimationEvent.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Assets/AC2/Scripts/AssetRef.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace AC2
{
public class AssetRef
{
public string path { get; set; }
}
}
11 changes: 11 additions & 0 deletions Assets/AC2/Scripts/AssetRef.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c880a8b

Please sign in to comment.