SPUM English Documentation
Building environment
How to use the feature
Export character
Ect Info
Using Prefab object

1. What is Unity Project Prefab Apply?

Characters created through SPUM can be extracted in Package format through Export and added to My Project.
See [Extract Prefab] for information on how to extract characters.

2. Apply Unity Project Prefab

1) Click [Import Package->Custom Package] in the Unity project to bring up the SPUM character.

2) Select the saved SPUM character in the folder.

3) When the Import Unity Package window appears, click ‘Import’ to add it.

4) You can see that the elements required for the project and the character prefabs have been added.

5) Let’s write a script for the prefab operation you added.
Create a new C# script with [Create->C# Script] in your project.

6) File name is set to ‘move_test’.
You can set the name to suit your purpose.

7) You have created a source for testing simple movements and attacks.
Using the sources below, you can experience the attack by clicking Move through the arrow keys, Z.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class move_test : MonoBehaviour
    private Animator animator;

    private void Awake(){
        animator = GetComponent<Animator>();
    // Start is called before the first frame update
    void Start()

    // Update is called once per frame
    void Update()
        float moveX = Input.GetAxis("Horizontal");
        float moveY = Input.GetAxis("Vertical");

        Vector3 moveVector = new Vector3(moveX, moveY, 0f);


        if (moveX!=0||moveY!=0)
            animator.SetFloat("RunState", 0.5f );
            animator.SetFloat("RunState", 0 );
        if (Input.GetKeyDown(KeyCode.Z))

8) Then, we placed the character prefab in Scene to check the actual operation.
Select ‘UnitRoot’ inside the character prefab.

9) Insert the C# code for character manipulation inside the Inspector of ‘UnitRoot’.
Drag and drop the script ‘move_test’ and add it.

10) After you run the project, you can verify that movements and attacks work.
The SPUM character can be utilized in various ways by applying the above method.