資源簡(jiǎn)介
非插件,直接解壓后將文件夾放入項(xiàng)目中,即可給對(duì)應(yīng)的游戲?qū)ο筇砑印癝oftMask”組件。
代碼片段和文件信息
using?UnityEngine;
using?UnityEngine.EventSystems;
namespace?SoftMasking.Samples?{
????[RequireComponent(typeof(RectTransform))]
????public?class?Draggable?:?UIBehaviour?IDragHandler?{
????????RectTransform?_rectTransform;
????????protected?override?void?Awake()?{
????????????base.Awake();
????????????_rectTransform?=?GetComponent();
????????}
????????
????????public?void?ondrag(PointerEventData?eventData)?{
????????????_rectTransform.anchoredPosition?+=?eventData.delta;
????????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-09-29?11:26??UnitySoftMask\
?????文件??????434714??2017-07-24?01:04??UnitySoftMask\Documentation.pdf
?????文件?????????176??2017-07-24?01:04??UnitySoftMask\Documentation.pdf.me
?????文件?????????973??2017-07-24?01:04??UnitySoftMask\Icon.png
?????文件????????1232??2017-07-24?01:04??UnitySoftMask\Icon.png.me
?????目錄???????????0??2019-09-29?11:26??UnitySoftMask\Samples\
?????文件?????????193??2017-07-24?01:04??UnitySoftMask\Samples.me
?????目錄???????????0??2019-09-29?11:26??UnitySoftMask\Samples\Materials\
?????文件?????????193??2017-07-24?01:04??UnitySoftMask\Samples\Materials.me
?????文件????????1717??2017-07-24?01:04??UnitySoftMask\Samples\Materials\WaveWithSoftMask.mat
?????文件?????????181??2017-07-24?01:04??UnitySoftMask\Samples\Materials\WaveWithSoftMask.mat.me
?????文件????????4917??2017-07-24?01:04??UnitySoftMask\Samples\Materials\WaveWithSoftMask.shader
?????文件?????????194??2017-07-24?01:04??UnitySoftMask\Samples\Materials\WaveWithSoftMask.shader.me
?????目錄???????????0??2019-09-29?11:26??UnitySoftMask\Samples\Prefabs\
?????文件?????????193??2017-07-24?01:04??UnitySoftMask\Samples\Prefabs.me
?????文件????????2441??2017-07-24?01:04??UnitySoftMask\Samples\Prefabs\Camera.prefab
?????文件?????????181??2017-07-24?01:04??UnitySoftMask\Samples\Prefabs\Camera.prefab.me
?????文件????????6582??2017-07-24?01:04??UnitySoftMask\Samples\Prefabs\CategoryButton.prefab
?????文件?????????181??2017-07-24?01:04??UnitySoftMask\Samples\Prefabs\CategoryButton.prefab.me
?????文件???????38113??2017-07-24?01:04??UnitySoftMask\Samples\Prefabs\ItemButton.prefab
?????文件?????????181??2017-07-24?01:04??UnitySoftMask\Samples\Prefabs\ItemButton.prefab.me
?????文件???????46884??2017-07-24?01:04??UnitySoftMask\Samples\Prefabs\SoftMaskMenu.prefab
?????文件?????????181??2017-07-24?01:04??UnitySoftMask\Samples\Prefabs\SoftMaskMenu.prefab.me
?????目錄???????????0??2019-09-29?11:26??UnitySoftMask\Samples\sc
?????文件?????????193??2017-07-24?01:04??UnitySoftMask\Samples\sc
?????文件?????????533??2017-07-24?01:04??UnitySoftMask\Samples\sc
?????文件?????????264??2017-07-24?01:04??UnitySoftMask\Samples\sc
?????文件?????????431??2017-07-24?01:04??UnitySoftMask\Samples\sc
?????文件?????????264??2017-07-24?01:04??UnitySoftMask\Samples\sc
?????文件?????????809??2017-07-24?01:04??UnitySoftMask\Samples\sc
?????文件?????????264??2017-07-24?01:04??UnitySoftMask\Samples\sc
............此處省略36個(gè)文件信息
評(píng)論
共有 條評(píng)論