PartProxy
LuaPartCopy Method |
Copies the specified to PRT.
Namespace: PartProxy
Assembly: PartProxy (in PartProxy.dll) Version: 1.0.0.0 (1.0.0.0)

public LuaPart Copy( LuaPart toPrt, bool withChildren = true, bool structOnly = false, bool noUnlock = false )
Public Function Copy ( toPrt As LuaPart, Optional withChildren As Boolean = true, Optional structOnly As Boolean = false, Optional noUnlock As Boolean = false ) As LuaPart
public: LuaPart^ Copy( LuaPart^ toPrt, bool withChildren = true, bool structOnly = false, bool noUnlock = false )
member Copy : toPrt : LuaPart * ?withChildren : bool * ?structOnly : bool * ?noUnlock : bool (* Defaults: let _withChildren = defaultArg withChildren true let _structOnly = defaultArg structOnly false let _noUnlock = defaultArg noUnlock false *) -> LuaPart
Parameters
- toPrt
- Type: PartProxyLuaPart
To PRT. - withChildren (Optional)
- Type: SystemBoolean
if set to true [with children]. - structOnly (Optional)
- Type: SystemBoolean
if set to true [structure only]. - noUnlock (Optional)
- Type: SystemBoolean
if set to true [no unlock].
Return Value
Type: LuaPartLuaPart.

Exception | Condition |
---|---|
InvalidOperationException | Unable to call the method on part. |
