Skip to main content
Mingxin_Ye
New Member
January 8, 2026
Question

Plugin Development - Logic for isAsset() Function?

  • January 8, 2026
  • 0 replies
  • 34 views

Hello guys! 

I’m building a plugin for my design team that uses the isAsset() function. In one part, my plugin exams all nested children within a given node and returns whether each children is an asset.

The function is doing a pretty good job recognizing icons but I ran into some issues with nested components. For example in the screenshot below, the isAsset() function returns true for two layers within the Instagram component, but only one within the facebook component. There were also a few times that running the function on the same component returns different results. 

Does anyone have similar experience? Is there a workaround to this?

 

 

This topic has been closed for replies.