Skip to content

A niche tool for recording a hierarchy of GameObject transforms in a point in editor or runtime

License

Notifications You must be signed in to change notification settings

Abbabon/TransformsRecorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transforms Recorder

openupm Hits

This tool can be used to record a complex hierarchy of GameObject's child transforms (during editor or runtime) in a ScriptableObject. This allows you to pose the character around your scene, take marketing screenshots, or anything similar.

More motivations and implementation details can be found at my blog

Install

Open UPM

TransformsRecorder can be installed via OpenUPM. It's recommended to install it via openupm-cli:

openupm add com.mezookan.transforms-recorder

Git Dependency

You can add the package to your project as a git upm dependency.

Either add the following line to your project's Packages/manifest.json file's dependencies:

"com.mezookan.transforms-recorder":"https://github.com/abbabon/TransformsRecorder.git?path=Packages/TransformsRecorder",

or via the Windows/PackageManager menu, by adding the following git repo: https://github.com/abbabon/TransformsRecorder.git?path=Packages/TransformsRecorder

How to use

  1. Place the 'TransformRecorder' script on any object in your scene.
  2. Drag the parent of the transform hierarchy you wish to record to the 'Parent Transform' field.
  3. Create a scriptable object from TransformDataContainer by right clicking on you project window, and then Create->ScriptableObjects->TransformDataContainer
  4. Drag the new TransformDataContainer to the TransformRecorder's relevant field.

You can now save the transform hierarchy by pressing the 'Record Transforms' button, or load with 'Load Transforms'. Just remember to create a scriptable object for each pose / sate. I encourage you to experiment further and expand the system.

An example scene is setup in the repo (not in the package), so you can see it in action.

License

Free to use under the MIT License

Third Party Notices

'The Boss' Model and animations supplied by Adobe (taken from Mixamo.com).

About

A niche tool for recording a hierarchy of GameObject transforms in a point in editor or runtime

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages