You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
468 B

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);
}
}
}