Skip to content

How to export VideoClip #351

Open
Open

Description

@edisonblack55555

How to export VideoClip in AS,I haven‘t find way

Activity

  1. isHarryh commented on Nov 26, 2025

    @isHarryh
    Contributor
    1. Do you mean "AssetStudio"? Please submit your issue to AssetStudio, not UnityPy.
    2. Please provide a sample file.
  2. CyrenArkade commented on Apr 18, 2026

    @CyrenArkade

    Spent a few hours on this, turns out the object has a m_ExternalResources attribute that has the info you need to index into the .resource file.

    def write_resource(resource, dst_path):
        with open(os.path.join(source, resource.m_Source), "rb") as src, open(dst_path, "wb") as dst:
            src.seek(resource.m_Offset)
    
            remaining = resource.m_Size
            while remaining > 0:
                chunk = src.read(min(1024*1024, remaining))
                if not chunk:
                    break
                dst.write(chunk)
                remaining -= len(chunk)
    
    data = obj.parse_as_object()
    output_filename = f'{data.m_Name}{os.path.splitext(data.m_OriginalPath)[1]}'
    write_resource(data.m_ExternalResources, output_filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions