Skip to main content

RtEntityExtensions

Namespace: Meshmakers.Octo.Runtime.Contracts

Extension methods of RtEntity.

public static class RtEntityExtensions

Inheritance Object → RtEntityExtensions

Methods​

ToRtEntityId(RtEntity)​

Returns the runtime entity id of the RtEntity.

public static RtEntityId ToRtEntityId(RtEntity rtEntity)

Parameters​

rtEntity RtEntity

Returns​

RtEntityId

GetRtCkTypeId<TEntity>(TEntity)​

Returns the corresponding of the RtEntity.

public static RtCkId<CkTypeId> GetRtCkTypeId<TEntity>(TEntity rtEntity)

Type Parameters​

TEntity

Parameters​

rtEntity TEntity

Returns​

RtCkId<CkTypeId>

GetRtCkTypeId<TEntity>()​

Returns the corresponding of the RtEntity.

public static RtCkId<CkTypeId> GetRtCkTypeId<TEntity>()

Type Parameters​

TEntity

Returns​

RtCkId<CkTypeId>

Remarks:

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