Abbabon / TransformsRecorder

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

Home Page:https://abbabon.github.io/2020-11-09-serializing-transforms/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://abbabon.github.io/2020-11-09-serializing-transforms/

License:MIT License


Languages

Language:C# 100.0%