erlang lists模块函数使用大全
田螺 发布于 7-23
一,带函数Pred1,all(Pred,List)->boolean()如果List中的每个元素作为Pred函数的参数执行,结果都返回true,那么all函数返回true,否则返回false例子:lists:all(fun(E)->trueend,[1,2,3,4]).结果true2,any(Pred,List)->boolea...
阅读(119) 评论(0)
田螺 发布于 7-23
一,带函数Pred1,all(Pred,List)->boolean()如果List中的每个元素作为Pred函数的参数执行,结果都返回true,那么all函数返回true,否则返回false例子:lists:all(fun(E)->trueend,[1,2,3,4]).结果true2,any(Pred,List)->boolea...
阅读(119) 评论(0)
田螺 发布于 10-10
--序列化--序列化时只需传入obj的值,其它保持nilfunctionserialize(obj,name,newline,depth)localspace=newlineand""or""newline=newlineandtruedepth=depthor0ifdepth>10thenreturn"..."endlocaltmp=st...
阅读(65) 评论(0)
田螺 发布于 9-27
unity5.x中使用了新的资源打包方法,代替4.x时代的BuildAssetBundle方法。但是新的打包方法生成的资源是没有mainAsset的,即assetBundle.mainAsset返回null。但是老代码里需要访问mainAsset的地方怎么办呢,可以使用如下方法:publicstaticUnityEngine.ObjectgetM...
阅读(71) 评论(0)
田螺 发布于 8-16
usingUnityEngine;usingSystem.Collections;usingSystem.Collections.Generic;usingSystem.IO;usingUnityEditor;usingUnityEditor.Animations;publicclassBuildAnimation:Editor{//生成出的Pr...
阅读(101) 评论(0)
田螺 发布于 7-28
[MenuItem("Assets/一键替换DDS的贴图")]publicstaticvoidToChangeMaterialsDDS(){//获取选中目录下的所有Material类型文件对象UnityEngine.Object[]m_objects=Selection.GetFiltered(typeof(Material),Selection...
阅读(39) 评论(0)
田螺 发布于 6-25
privateGameObjectprefab=null;privateTransformpoolRoot=null;publicTextnameTxt{get;privateset;}//UsethisforinitializationvoidStart(){//GameObject.Find("gameobject_name").SetAct...
阅读(52) 评论(0)
田螺 发布于 6-24
LuaSvrluaSvr;luaSvr=newLuaSvr();luaSvr.init(null,()=>{LuaState.main.loaderDelegate+=LuaLoader;//luaSvr.start("launcher");});//self=(LuaTable)luaSvr.start("launcher");luaSv...
阅读(59) 评论(0)
最新评论
文章不错交个朋友
签到成功!签到时间:2021/4/15 ...
[code]签到成功!签到时间:2021...
@田刚:回复看一下
利用jquery 来实现tag的切换函数...
喜欢 这个博客程序