ドキュメント

Unity Engine

Unity Engine

UnregisterCustomDependencyPrefixFilter(string)

Removes custom dependencies that match the prefixFilter.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static uint UnregisterCustomDependencyPrefixFilter(string prefixFilter)

Parameters

prefixFilter

Prefix filter for the custom dependencies to unregister.

Returns

Type

Description

uintNumber of custom dependencies removed.

Examples

using UnityEngine;using UnityEditor;using UnityEngine.Assertions;public class CustomDependenciesExample{ public static void AddAndRemoveCustomDependencies() { // Example to to illustrate how UnregisterCustomDependencyPrefixFilter works. Not a useful scenario. AssetDatabase.RegisterCustomDependency("MyDependencySystem/DepA", Hash128.Compute("Hello")); AssetDatabase.RegisterCustomDependency("MyDependencySystem/DepB", Hash128.Compute("World")); var unregistered = AssetDatabase.UnregisterCustomDependencyPrefixFilter("MyDependencySystem/"); Assert.AreEqual(2, unregistered); }}