Skip to content

Commit 0f03b21

Browse files
committed
Interactivity: added localScale support for Interpolate
1 parent 092249a commit 0f03b21

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Editor/Scripts/Interactivity/VisualScriptingExport/UnitExporters/GltfInteractivityUnits/InterpolateUnitExport.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ public bool InitializeInteractivityNodes(UnitExporter unitExporter)
6060
SpaceConversionHelpers.AddRotationSpaceConversion(unitExporter, out originalValue, out convertedValue);
6161
originalValue.MapToInputPort(unit.input);
6262
}
63+
else if (unit.member.name == "localScale")
64+
{
65+
pointerTemplate = "/nodes/{" + PointersHelper.IdPointerNodeIndex + "}/scale";
66+
valueType = GltfTypes.Float3;
67+
}
6368
}
6469

6570
if (unit.member.targetType == typeof(Material))

0 commit comments

Comments
 (0)