Skip to content

mono_set_find_plugin_callback #3

@WhiteSmoogy

Description

@WhiteSmoogy

该函数为Unity调用的第一个函数,该函数传入一个函数指针

const char*(*unity_find_plugin_callback)(const char*)

当发起pinvoke call时,需要进行依赖的dll/so搜索
首先mono会获取该dll/so的名字
如果存在被设置的函数指针,那么将mono获取的名字替换为调用该函数返回的名字
细节:该函数返回的char*不会被mono所持有,需要做strdup

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions