Paste Component

STD Library
Server Side
Only PC

Copy or add component data

Declaration

func PasteComponent(source entity<Entity>, target entity<Entity>, componentType Type, out var isSuc bool)
go

Parameters

Input

Name Type Description
Source Entity The source entity
Target Entity Target Entity
Component Type Type Component Type

Out

Name Type Description
Is Success Bool Whether it is successful or not