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.
 
 
 
 

24 lines
640 B

using System;
using System.Collections.Generic;
using UnityEngine;
using UnityObject = UnityEngine.Object;
namespace UnityEditor.VFX
{
abstract class VFXSlotObject : VFXSlot
{
public override void GetSourceDependentAssets(HashSet<string> dependencies)
{
base.GetSourceDependentAssets(dependencies);
UnityObject obj = (UnityObject)value;
if (!object.ReferenceEquals(obj, null))
{
var entityId = obj.GetEntityId();
dependencies.Add(AssetDatabase.AssetPathToGUID(AssetDatabase.GetAssetPath(entityId)));
}
}
}
}