240 发简信
IP属地:江西
  • Unity3D RenderType

    在Unity Shader中会经常在SubShader中使用Tags,我们来看下其中的RenderType 我们来看下官方文档的说明 Rende...

  • Unity3D Inspector 序列化属性自动赋值

    做UI的时候,序列化的属性,代码写好后,每次都需要手动拖动相应的GameObject到Inspector上。通过下面的方法,我们可以实现自动赋值...

  • Unity编辑器 一键添加场景列表,方便切换

    编辑器中,编辑不同的场景需要在Project 窗口中去查找进行切换,比较麻烦。通过下面的脚本,可以遍历所有的场景,在菜单栏显示出来,方便快速切换...

  • Unity Console 中使用rich text

    Unity里UGUI中Text组件可以使用富文本。其实也可以通过Debug.Log 中使用符富文本 来区别输出内容。官方说明文档 https:...

  • Resize,w 360,h 240
    Unity3D iOS 原生层更新Texture

    通过CommandBuffer.IssuePluginCustomTextureUpdate(IntPtr callback, Texture ...

  • 编辑器中修改materials

    Renderer.sharedMaterialsNote that like all arrays returned by Unity, thi...

  • Unity3D Editor Tooltip

    public GUIContent(string text, string tooltip); using UnityEngine;using ...

  • 获取当前节点包含所有子物体的Bounds

    private static Bounds CalculateBounds(Transform go) {Bounds b = new Boun...

个人介绍
www.unityask.com 微信公众号UnityAsk