Click or drag to resize

ComponentExtensionsGetCopyOf Method

Copies all properties of a component from source to target. Uses reflection to set properties.

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public static UnityEngine.Component GetCopyOf(
	this UnityEngine.Component source,
	UnityEngine.Component target
)

Parameters

source
Type: UnityEngine.Component
source component
target
Type: UnityEngine.Component
target component

Return Value

Type: UnityEngine.Component

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UnityEngine.Component. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also