Files
CartoonRPG/Library/PackageCache/com.unity.visualeffectgraph@2973a8ac1070/Editor/Models/Slots/Implementations/VFXSlotMatrix4x4.cs

20 lines
468 B
C#
Raw Normal View History

2025-06-05 22:59:18 +01:00
using System;
using UnityEngine;
namespace UnityEditor.VFX
{
[VFXInfo(type = typeof(Matrix4x4))]
class VFXSlotMatrix4x4 : VFXSlot
{
protected override bool CanConvertFrom(Type type)
{
return base.CanConvertFrom(type) || type == typeof(Transform);
}
public override VFXValue DefaultExpression(VFXValue.Mode mode)
{
return new VFXValue<Matrix4x4>(Matrix4x4.identity, mode);
}
}
}