People Playground

People Playground

Not enough ratings
Hair Creater V2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
415.263 KB
15 Mar @ 7:09am
1 Change Note ( view )

Subscribe to download
Hair Creater V2

In 1 collection by L1fe_plz
d1e_plz mods
2 items
Description
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 Comments
2020sux 3 Jun @ 10:22pm 
V2 DETECTED, NOW PLAYING: DUEL (VERSUS REPRISE) BY HEAVEN PIERCE HER
vinylsama1 31 May @ 10:26pm 
cool
v3rbalvibe 28 May @ 10:05pm 
cool