docs.unity3d.com
    目次を表示する/隠す

    Class AnalyzeRule

    Base class for creating rules to analyze Addressables data. Use AnalyzeWindow.RegisterNewRule<T>() to register. a rule with the GUI window.

    Inheritance
    Object
    AnalyzeRule
    BundleRuleBase
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.AddressableAssets.Build.AnalyzeRules
    Syntax
    [Serializable]
    public class AnalyzeRule

    Fields

    Name Description
    kDelimiter

    Delimiter character used in analyze rule string names. This is used when a rule result needs to display as a tree view hierarchy. A rule result of A:B:C will end up in the tree view with:

    • A --- B ----- C
    noErrors

    Represents a state where no errors were found after analyzing Addressables data.

    Properties

    Name Description
    CanFix

    True if this rule can fix itself. If child class sets this to true, class must override FixIssues

    ruleName

    Display name for rule

    Methods

    Name Description
    ClearAnalysis()

    Clears out the analysis results. When overriding, use to clear rule-specific data as well.

    FixIssues(AddressableAssetSettings)

    Fixing method to be run on results of the RefreshAnalysis. If CanFix returns true, this method must be overriden. It is recommended that RefreshAnalysis caches any data that will be needed to fix. Fix should not rerun RefreshAnalysis before fixing.

    RefreshAnalysis(AddressableAssetSettings)

    This method runs the actual analysis for the rule.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)