LuaPart.FindChildByName Method

PartProxy

LuaPartFindChildByName Method

Find a part between my children, if there are more parts with same name, it returns the first found. Search at all levels

Namespace:  PartProxy
Assembly:  PartProxy (in PartProxy.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public LuaPart FindChildByName(
	string prtName
)
Public Function FindChildByName ( 
	prtName As String
) As LuaPart
public:
LuaPart^ FindChildByName(
	String^ prtName
)
member FindChildByName : 
        prtName : string -> LuaPart 

Parameters

prtName
Type: SystemString
Name of the PRT.

Return Value

Type: LuaPart
LuaPart.
Exceptions
ExceptionCondition
InvalidOperationExceptionUnable to call the method on part.
See Also