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
646 B
24 lines
646 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))
|
|
{
|
|
int instanceID = obj.GetInstanceID();
|
|
dependencies.Add(AssetDatabase.AssetPathToGUID(AssetDatabase.GetAssetPath(instanceID)));
|
|
}
|
|
}
|
|
}
|
|
}
|