assetexists

assetexists(pathname)

This returns True if an asset exists and False otherwise. Takes the full path path of the asset in question.


Example

import rtaptools as rtt

# example of asset full name
asset = '/Game/Animations/anim001.anim001'

exist = rtt.assetexists(asset)
if exist:
    unreal.log(‘THIS ASSET EXISTS‘)
else:
    unreal.log('THIS ASSET DOES NOT EXIST')