Urho.Node.AddComponent Method

Add a pre-created component.

Syntax

public Void AddComponent (Component component, UInt32 id)

Parameters

component
Component to add.
id
ID to assign to the component, if zero, the Scene will assign the ID automatically.

Remarks

This adds the component and defaults to CreateMode.Replicated for the addition mode.

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0