Click or drag to resize

ComponentCreateComponentT Method (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 T CreateComponent<T>(
	int insertIndex = -1,
	bool enabled = true,
	bool setUniqueName = false,
	NetworkModeEnum networkMode = NetworkModeEnum.True
)
where T : Component

Parameters

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

Type Parameters

T

Return Value

Type: T
See Also