Sync Transforms#
Physics / Physics / Sync Transforms
Description#
Executes the Sync Transforms static method of the Physics class
Code#
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Title("Sync Transforms")]
[Category("Physics/Physics/Sync Transforms")]
[Description("Executes the Sync Transforms static method of the Physics class")]
[Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
[Serializable]
public class GenInstructionPhysics_SyncTransforms_0 : Instruction
{
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Physics");
string method = TextUtils.ThemeAsKeyword("Sync Transforms");
return $"{className} {method}";
}
protected override Awaitable Run(Args args)
{
Physics.SyncTransforms();
return Done;
}
}
}