Skip to main content

RtEntityExtensions

Namespace: Meshmakers.Octo.Runtime.Contracts

Extension methods of RtEntity.

public static class RtEntityExtensions

Inheritance ObjectRtEntityExtensions

Methods

ToRtEntityId(RtEntity)

Returns the runtime entity id of the RtEntity.

public static RtEntityId ToRtEntityId(RtEntity rtEntity)

Parameters

rtEntity RtEntity

Returns

RtEntityId

GetCkTypeId<TEntity>(TEntity)

Returns the corresponding of the RtEntity.

public static CkId<CkTypeId> GetCkTypeId<TEntity>(TEntity rtEntity)

Type Parameters

TEntity

Parameters

rtEntity TEntity

Returns

CkId<CkTypeId>

GetCkTypeId<TEntity>()

Returns the corresponding of the RtEntity.

public static CkId<CkTypeId> GetCkTypeId<TEntity>()

Type Parameters

TEntity

Returns

CkId<CkTypeId>

Remarks:

See also , this attribute is used to determine the CkTypeId of the entity.