VRCTween: Difference between revisions

From VRChat Wiki
Hackebein (talk | contribs)
We like it smooth
 
~Pausbe (talk | contribs)
remove upcoming. add category.
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Noticebox/Official}}
{{Noticebox/Official}}
{{Noticebox/unreleased}}
 
'''VRCTween''' is an upcoming SDK class that provides tweening functionality for [[Worlds|worlds]]. It allows creators to smoothly animate properties such as positions, rotations, floats, vectors, and quaternions without requiring update loops or Unity animations<ref>[https://ask.vrchat.com/t/vrchat-creators-roadmap-march-2026/48077 'VRChat Creators Roadmap (March 2026)'] on ''[[ask.vrchat.com]]''.</ref>.
'''VRCTween''' is a SDK class that provides tweening functionality for [[Worlds|worlds]]. It allows creators to smoothly animate properties such as positions, rotations, floats, vectors, and quaternions without requiring update loops or Unity animations<ref>[https://ask.vrchat.com/t/vrchat-creators-roadmap-march-2026/48077 'VRChat Creators Roadmap (March 2026)'] on ''[[ask.vrchat.com]]''.</ref>.


== Overview ==
== Overview ==
[[File:VRCTween.gif|thumb|A demonstration of a VRCTween, and its features. ''(Animated GIF)'']]
Tweening (short for "in-betweening") is the process of generating intermediate frames between keyframes to create smooth animations. VRChat worlds can already achieve tweening through Unity animations or [[Udon]] scripts, but these approaches often require significant manual work. VRCTween is designed to make this more convenient by providing dedicated nodes and events.
Tweening (short for "in-betweening") is the process of generating intermediate frames between keyframes to create smooth animations. VRChat worlds can already achieve tweening through Unity animations or [[Udon]] scripts, but these approaches often require significant manual work. VRCTween is designed to make this more convenient by providing dedicated nodes and events.


VRCTween is based on DOTween and brings much of the same functionality to VRChat.
VRCTween uses [http://dotween.demigiant.com/ DOTween] as the underlying library and brings much of the same functionality to VRChat.
 
[https://feedback.vrchat.com/feature-requests/p/whitelist-dotween-for-sdk3 VRCTween feedback post] on ''feedback.vrchat.com''


== Usage ==
== Usage ==
[[File:VRCTween Udongraph.png|thumb|An example of code for VRCTween, within the Udon Graph.]]
VRCTween methods can be used in both the Udon Node Graph and [[UdonSharp]]. Methods such as <code>TweenPosition</code> start an asynchronous tween and return a tween ID. The <code>OnComplete</code> method can register a callback event that fires when the tween finishes.
VRCTween methods can be used in both the Udon Node Graph and [[UdonSharp]]. Methods such as <code>TweenPosition</code> start an asynchronous tween and return a tween ID. The <code>OnComplete</code> method can register a callback event that fires when the tween finishes.


VRCTween supports easing functions (e.g. <code>VRCTween.Ease.IN_OUT_SINE</code>) to control the interpolation curve. The initial release does not support arbitrary animation curves, but supports all the ease types that DOTween provides (Linear, Sine, Quad, Cubic, Quart, Quint, Expo, Circ, Elastic, Back, Bounce).
VRCTween supports easing functions (e.g. <code>VRCTween.Ease.IN_OUT_SINE</code>) to control the interpolation curve. The initial release does not support arbitrary animation curves, but supports all the ease types that DOTween provides (Linear, Sine, Quad, Cubic, Quart, Quint, Expo, Circ, Elastic, Back, Bounce).
Full documentation can be found [https://creators.vrchat.com/worlds/udon/vrctween/ here].


== References ==
== References ==
<references />
<references />
[[Category:SDK{{#translation:}}]]

Latest revision as of 16:24, 19 June 2026

V · EThis is an official VRChat information page!
It is reviewed and approved by the VRCWiki Team. Learn how to contribute to this page by reading the Contribution Guide.

VRCTween is a SDK class that provides tweening functionality for worlds. It allows creators to smoothly animate properties such as positions, rotations, floats, vectors, and quaternions without requiring update loops or Unity animations[1].

Overview

A demonstration of a VRCTween, and its features. (Animated GIF)

Tweening (short for "in-betweening") is the process of generating intermediate frames between keyframes to create smooth animations. VRChat worlds can already achieve tweening through Unity animations or Udon scripts, but these approaches often require significant manual work. VRCTween is designed to make this more convenient by providing dedicated nodes and events.

VRCTween uses DOTween as the underlying library and brings much of the same functionality to VRChat.

Usage

An example of code for VRCTween, within the Udon Graph.

VRCTween methods can be used in both the Udon Node Graph and UdonSharp. Methods such as TweenPosition start an asynchronous tween and return a tween ID. The OnComplete method can register a callback event that fires when the tween finishes.

VRCTween supports easing functions (e.g. VRCTween.Ease.IN_OUT_SINE) to control the interpolation curve. The initial release does not support arbitrary animation curves, but supports all the ease types that DOTween provides (Linear, Sine, Quad, Cubic, Quart, Quint, Expo, Circ, Elastic, Back, Bounce).

Full documentation can be found here.

References