Click or drag to resize

ComponentCreateComponent Method (MetadataTypeInfo, Int32, Boolean, Boolean, NetworkModeEnum)

Creates a child component.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public Component CreateComponent(
	MetadataTypeInfo type,
	int insertIndex = -1,
	bool enabled = true,
	bool setUniqueName = false,
	NetworkModeEnum networkMode = NetworkModeEnum.True
)

Parameters

type
Type: NeoAxisMetadataTypeInfo
insertIndex (Optional)
Type: SystemInt32
enabled (Optional)
Type: SystemBoolean
setUniqueName (Optional)
Type: SystemBoolean
networkMode (Optional)
Type: NeoAxisNetworkModeEnum

Return Value

Type: Component
See Also