Version: 2020.1
言語: 日本語
Experimental: this API is experimental and might be changed or removed in the future.

AssetDatabaseExperimental.UnregisterCustomDependencyPrefixFilter

マニュアルに切り替える
public static uint UnregisterCustomDependencyPrefixFilter (string prefixFilter);

パラメーター

prefixFilter Prefix filter for the custom dependencies to unregister.

戻り値

uint Number of custom dependencies removed.

説明

Removes custom dependencies that match the prefixFilter.

using UnityEngine;
using UnityEditor.Experimental;
using UnityEngine.Assertions;
public class CustomDependenciesExample
{
    public static void AddAndRemoveCustomDependencies()
    {
        // Example to to illustrate how UnregisterCustomDependencyPrefixFilter works. Not a useful scenario.
        AssetDatabaseExperimental.RegisterCustomDependency("MyDependencySystem/DepA", Hash128.Compute("Hello"));
        AssetDatabaseExperimental.RegisterCustomDependency("MyDependencySystem/DepB", Hash128.Compute("World"));

var unregistered = AssetDatabaseExperimental.UnregisterCustomDependencyPrefixFilter("MyDependencySystem/"); Assert.AreEqual(2, unregistered); } }