Click or drag to resize
InspectorUtilsCreateFromAttributeTableT Method
Creates an object of the specified type and initializes it with values from the passed attribute table, or default values of the respective inspector properties, if no attribute value is present.

Namespace: Slash.ECS.Inspector.Utils
Assembly: Slash.ECS (in Slash.ECS.dll) Version: 1.0.6018.40178
Syntax
public static T CreateFromAttributeTable<T>(
	EntityManager entityManager,
	InspectorType inspectorType,
	IAttributeTable attributeTable
)
where T : class

Parameters

entityManager
Type: Slash.ECS.ComponentsEntityManager
Entity manager to use for initializing the object, e.g. for creating entities from entity configuration attributes.
inspectorType
Type: Slash.ECS.Inspector.DataInspectorType
Inspector data of the type of the object to create.
attributeTable
Type: Slash.Collections.AttributeTablesIAttributeTable
Attribute table to initialize the object with.

Type Parameters

T
Type of the object to create.

Return Value

Type: T
Initialized new object of the specified type.
See Also