Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AssetWithSource Class

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll

    An asset that references a source file used during the compilation of the asset.

    System.Object → Asset → AssetWithSource
    Derived from AssetWithSource: RawAsset

    [DataContract]
    public abstract class AssetWithSource : Asset, IAssetWithSource
    Name Description
    Properties
    MainSource
    Source

    Gets or sets the source file of this asset.

    | Improve this Doc View Source

    Properties


    MainSource

    public override UFile MainSource { get; }
    Property Value
    Type Description
    Stride.Core.IO.UFile
    Overrides
    Asset.MainSource

    Source

    Gets or sets the source file of this asset.

    [DataMember(-50)]
    [SourceFileMember(false)]
    public UFile Source { get; set; }
    Property Value
    Type Description
    Stride.Core.IO.UFile

    The source.


    Inherited Members

    Asset.Id
    Asset.SerializedVersion
    Asset.Tags
    Asset.Archetype
    Asset.CreateDerivedAsset(String)
    Asset.CreateDerivedAsset(String, Dictionary<Guid, Guid>)
    Asset.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation