Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何取得shared_asset里的图片 #30

Open
rekcah1986 opened this issue Aug 9, 2017 · 0 comments
Open

请问如何取得shared_asset里的图片 #30

rekcah1986 opened this issue Aug 9, 2017 · 0 comments

Comments

@rekcah1986
Copy link

	local resManager = LuaFramework.LuaHelper.GetResManager()
	local ret = resManager:LoadPrefab("shared_asset", 
		{"ButtonClick", "ButtonClick.png", "Shared/ButtonClick", "Shared/ButtonClick.png"},
		function(objs)
			for i=0,objs.Length-1 do
				print("OBJS:", i, objs:GetValue(i)) -- 输出nil
			end
		end
	)
	print("ret", ret) -- 输出nil

我是这样写的,但只能取到nil,也没有找到相关的文档和例子,请高手指导下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant