Table of Contents

Class BakeUtil

Namespace
Coherence.Editor
Assembly
Coherence.Editor.dll
public static class BakeUtil
Inheritance
BakeUtil

Fields

bakeOnBuildKey

public const string bakeOnBuildKey = "Coherence.BakeOnBuild"

Field Value

string

bakeOnEnterPlayModeKey

public const string bakeOnEnterPlayModeKey = "Coherence.BakeOnEnterPlayMode"

Field Value

string

coherenceSyncSchemasDirtyKey

public const string coherenceSyncSchemasDirtyKey = "Coherence.CoherenceSyncSchemasDirty"

Field Value

string

gatherOnBakeKey

public const string gatherOnBakeKey = "Coherence.GatherOnBake"

Field Value

string

Properties

ActiveSchemasChanged

Determines if the active schemas have changed since the last bake performed.

note

It only takes into account schemas, it won't consider the gather manifest (necessary for a complete bake).

public static bool ActiveSchemasChanged { get; }

Property Value

bool

BakeOnBuild

public static bool BakeOnBuild { get; set; }

Property Value

bool

BakeOnEnterPlayMode

public static bool BakeOnEnterPlayMode { get; set; }

Property Value

bool

CoherenceSyncSchemaOutdated

Determines if the gathered CoherenceSync schema is outdated.

public static bool CoherenceSyncSchemaOutdated { get; }

Property Value

bool

CoherenceSyncSchemasDirty

public static bool CoherenceSyncSchemasDirty { get; }

Property Value

bool

GatherOnBake

public static bool GatherOnBake { get; set; }

Property Value

bool

HasReflectedModeSupport

Determines if there is reflected mode support.

public static bool HasReflectedModeSupport { get; }

Property Value

bool

HasSchemaID

public static bool HasSchemaID { get; }

Property Value

bool

Outdated

Determines if the baked files are outdated, based on missing files and changes on schema files. If they are, a Bake(Settings) operation is recommended.

public static bool Outdated { get; }

Property Value

bool

OutputFolder

Gets the path (relative to the project path) where the baked files are stored.

public static string OutputFolder { get; }

Property Value

string

SchemaID

Gets the current SchemaID for this project. The SchemaID is a hash computed from the contents of all the active schemas.

public static string SchemaID { get; }

Property Value

string

SchemaIDShort

Gets the current short SchemaID (5 chars) for this project. The SchemaID is a hash computed from the contents of all the active schemas.

public static string SchemaIDShort { get; }

Property Value

string

Methods

Bake()

public static bool Bake()

Returns

bool

Bake(Settings)

public static bool Bake(BakeUtil.Settings settings)

Parameters

settings BakeUtil.Settings

Returns

bool

EmitSchema()

[Obsolete("Use BakeUtil.GatherCoherenceSyncSchema")]
public static bool EmitSchema()

Returns

bool

GatherCoherenceSyncSchema()

public static bool GatherCoherenceSyncSchema()

Returns

bool

Events

OnBakeEnded

public static event Action<BakeUtil.Settings> OnBakeEnded

Event Type

Action<BakeUtil.Settings>

OnBakeStarted

public static event Action<BakeUtil.Settings> OnBakeStarted

Event Type

Action<BakeUtil.Settings>