• 2023-10-26Unity anchoredPosition转localPosition
    参考https://zhuanlan.zhihu.com/p/119442308在已经有结果的情况下,先捋一下unity对相关字段的注释就能得出很多公式(rectMinPos表示左下角在父节点坐标系中的位置,其他以"Pos"结尾的字段同理)pivot:ThenormalizedpositioninthisRectTransformthatitrotatesaround.
  • 2023-03-22一统天下 flutter - 输入: GestureDetector - 手势
    一统天下flutterhttps://github.com/webabcd/flutter_demo作者webabcd一统天下flutter-输入:GestureDetector-手势示例如下:lib\input\gesture_detector.da
  • 2023-02-24C#轮转图
     usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingDG.Tweening;publicclassRotationChart:MonoBehaviour{public
  • 2022-12-02RectTransform
      localPosition中心点对于父节点中心点  anchoredPosition  offsetMaxoffsetMinsizeDeltarect.positionrect.size
  • 2022-11-09unity 对rotation、 localPosition、 localScale 进行修改
    unity对 rotation、localPosition、localScale进行修改 rotation:1、xxx.transform.localEulerAngles=newVector3(0.0f,0.0f,0.0f); 2、xxx.transform.rotat
  • 2022-11-01unity3d:复制选中物体transform信息到剪切板
    usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingUnityEditor;publicclassSaveTransInfo:EditorWindow{[MenuItem("SaveTrans