Table of Contents

Class SourceCodeAsset

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

Class SourceCodeAsset.

[DataContract("SourceCodeAsset")]
public abstract class SourceCodeAsset : Asset
Inheritance
SourceCodeAsset
Derived
Inherited Members

Properties

InternalSerializableTextAccessor

Used internally by serialization.

[DataMember(DataMemberMode.Assign)]
[Display(null, null, Browsable = false)]
public ISerializableTextAccessor InternalSerializableTextAccessor { get; set; }

Property Value

ISerializableTextAccessor

Text

Gets the sourcecode text.

[Display(null, null, Browsable = false)]
public string Text { get; set; }

Property Value

string

The sourcecode text.

TextAccessor

[Display(null, null, Browsable = false)]
public ITextAccessor TextAccessor { get; set; }

Property Value

ITextAccessor

Methods

GenerateIdFromLocation(string, string)

Generates a unique identifier from location.

public static AssetId GenerateIdFromLocation(string packageName, string location)

Parameters

packageName string
location string

The location.

Returns

AssetId

Guid.

Save(Stream)

Saves the content to a stream.

public virtual void Save(Stream stream)

Parameters

stream Stream