![gold slimes slime rancher gold slimes slime rancher](https://i.ytimg.com/vi/CCJZBzCHRtQ/maxresdefault.jpg)
![gold slimes slime rancher gold slimes slime rancher](https://imgs3.goodsmileus.com/image/cache/data/productimages/FFbF/SlimeRancher/Plush/Gold_Slime_Plush/UPDATE_GoldSlime_ThreeQuarter-1000x1000.png)
If the structure/bone is not null (if it exists) and if it's length is not 0 (if it exists and it contains something), then continue with the lines below Seventh Line If (defaultMaterials != null & defaultMaterials.Length != 0) Getting the materials of the structure (of the bone) Sixth Line Material defaultMaterials = slimeAppearanceStructure.DefaultMaterials Getting the structures of the slime (they are like the 3D bones) Fourth Lineįoreach (SlimeAppearanceStructure slimeAppearanceStructure in structures)įor each structure (for each bone) Fifth Line SlimeAppearanceStructure structures = slimeAppearance.Structures SlimeDefinition.AppearancesDefault = slimeAppearance Īssign the slime appearance to our slime definition Third Line SlimeAppearance slimeAppearance = (SlimeAppearance)PrefabUtils.DeepCopyObject(pinkSlimeDefinition.AppearancesDefault) Ĭopying the slime appearance of the pink slime Second Line Finally, we just set the slime's gameobject's SlimeAppearanceApplicator component's slime appearance to the appearance you just made. Just like modifying the body colors, it's just the bottom middle and top colors again. skipping down to modifying the slime's color palette, this is the color used for the slime's splat. It's pretty self-explanatory, just changing the colors of the various face structures. Skipping ahead to the for loop, this is where we're modifying the face's colors. We set the top middle and bottom colors, we set its spec color (which is the color of the shine), and we set how shiny and glossy the slime is. The first line is what the material we're modifying is, in this case we're modifying the pink slime's material for our slime. Inside of the if statement inside the foreach loop is where we are messing with the material. Next, we grab the slime's structures and mess with its materials. We set our slime's slime definition's appearance to this new appearance. If you want the slime to look like another slime, you'd need to copy a different slime's slime appearance. This is the other time we're using the pink slime's definition. Appearance = slimeAppearance > We start out by making a copy of the pink slime's slime appearance. Structures foreach ( SlimeAppearanceStructure slimeAppearanceStructure in structures ) SlimeExpressionFace expressionFaces = slimeAppearance. AppearancesDefault = slimeAppearance SlimeAppearanceStructure structures = slimeAppearance. SlimeAppearance slimeAppearance = ( SlimeAppearance ) PrefabUtils.