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

    Method ValidateAsset

    ValidateAsset(Object)

    Validates that the referenced asset allowable for this asset reference.

    Declaration
    public override bool ValidateAsset(Object obj)
    Parameters
    Type Name Description
    Object obj

    The Object to validate.

    Returns
    Type Description
    Boolean

    Whether the referenced asset is valid.

    Overrides
    AssetReference.ValidateAsset(Object)

    ValidateAsset(String)

    Validates that the asset located at a path is allowable for this asset reference. An asset is allowable if it is of the correct type or if one of its sub-asset is.

    Declaration
    public override bool ValidateAsset(string mainAssetPath)
    Parameters
    Type Name Description
    String mainAssetPath

    The path to the asset in question.

    Returns
    Type Description
    Boolean

    Whether the referenced asset is valid.

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