Description
The PasteValues
method is a static extension method for the Component
class within the Sandbox
namespace. It is used to paste values from a previously copied component onto the specified target component. This method is part of the SceneExtensions
class, which provides various utility functions for working with scenes and components in the s&box game engine.
Usage
To use the PasteValues
method, ensure that you have a valid Component
instance that you want to paste values onto. This method should be called after using the CopyToClipboard
method to copy values from another component. The method does not return any value and directly modifies the target component.
Example
// Assuming 'component' is a valid Component instance
// and values have been copied to the clipboard using CopyToClipboard
Component targetComponent = ...; // Obtain or create a target component
SceneExtensions.PasteValues(targetComponent);
// The targetComponent now has the values from the copied component.