获取节点类名(:GetClassName)
函数
类名 = 节点信息:GetClassName()
返回值
- 类名 文本型
说明
获取节点的 类名信息
示例
local node = require("nodeLua")
local nodeInfo = node.byPath('AWEMaskWindow/UITransitionView/UIDropShadowView/UILayoutContainerView/UITransitionView/UIViewControllerWrapperView/UILayoutContainerView/UINavigationTransitionView/UIViewControllerWrapperView/UIView/UIView/AWESearchCachalotView/CachalotCollectionView/CachalotCommonCollectionViewCell/UIView/SearchDynamicContainerView/BDXView/BDXLynxView/LynxView/LynxScrollView/UILynxView/UILynxView/UILynxView/LynxTextView/')
--查找路径
if (nodeInfo) then
print(nodeInfo[1]:GetClassName()) --打印当前节点 类名
end