People Playground

People Playground

评价数不足
Hair Creater V2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
415.263 KB
3 月 15 日 上午 7:09
1 项改动说明 ( 查看 )

订阅以下载
Hair Creater V2

在 L1fe_plz 的 1 个合集中
d1e_plz mods
3 件物品
描述
Hi I made this mod to make it easier to create accessories on your people

Usage:
  • Step 1...
    first let's get acquainted with the structure "public class hairCreaterV2"
    there is a value public int limitHairOnLimb - it is responsible for the size of the array:
    "(GameObject[] Hairs = new GameObject[limitHairOnLimb])"
    in void Create path (function)
    there is a check for alre[ady having hair (to avoid bugs of course. This allows you to create more than one accessory on a body part). Next, the new GameObject is given values ​​(parent, position, size) if you need to customize your values, localHair comes to you (IT MUST BE DECLARED AFTER THE FUNCTION AND BEFORE THE NEW FUNCTION otherwise you will get either null or the wrong accessory)

  • Step 2...
    in the script it should look like this:
    Instance.GetOrAddComponent<hairCreaterV2>().CreateHat(Sprite sprite, Limb Behaviour limb, Vector2 scale, Vector3 pos, int OrderLayer, string name)
    var My Hair = Instance.GetOrAddComponent<hairCreaterV2>().localHair;

NOTE: report bugs and so on in the comments under the mod, you can get the source code from Github [github.com]
3 条留言
2020sux 6 月 3 日 下午 10:22 
V2 DETECTED, NOW PLAYING: DUEL (VERSUS REPRISE) BY HEAVEN PIERCE HER
vinylsama1 5 月 31 日 下午 10:26 
cool
v3rbalvibe 5 月 28 日 下午 10:05 
cool