docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ManifestElement

    This class holds information for a single Android manifest element, including its path and attributes.

    Inheritance
    object
    ManifestElement
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.XR.Management.AndroidManifest.Editor
    Assembly: Unity.XR.Management.Editor.dll
    Syntax
    public class ManifestElement

    Properties

    Attributes

    Dictionary of Name-Value pairs of the represented element's attributes.

    Declaration
    public Dictionary<string, string> Attributes { get; set; }
    Property Value
    Type Description
    Dictionary<string, string>

    ElementPath

    List of element names representing the full XML path to the element. It must include last the element that this object represents.

    Declaration
    public List<string> ElementPath { get; set; }
    Property Value
    Type Description
    List<string>
    Remarks

    The order in which the elements are added is important, as each list member represents an XML element name in the order, so specifying a list as { "manifest", "application" } is not the same as { "application", "manifest"}.

    Examples

    Example for accessing a meta-data element:

    new ManifestElement {
        ElementPath = new List() {
            "manifest", "application", "meta-data"
        }
    }
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)