1.
public class ExLifeCycle : MonoBehaviour
{
private void Awake()
{
Debug.Log($"{name}:Awake");
}
private void OnEnable()
{
Debug.Log($"{name}:OnEnable");
}
void Start()
{
Debug.Log($"{name}:Start");
}
1.
the upper build guide doesn't have the information correctly.
Before typing this python command,
python3 build.py
Make sure that you have Unity 2020.3.33f1 version.
IF not,
When you build your app by Unity iOS,
the following error will occur.
Asset Packages/com.apple.unityplugin.core/Plugins/iOS has no meta file, but it's in an immutable folder. The asset will be ignored.
https://developer.apple.com/forums/thread/710437
3d 툴로 체인 object들을 만들고 각 object 들의 origin 은 anchor 역할을 하는 끝마디에 위치시켜놓는다. ( 별도로 bone 을 만들필요없다.)
unity 에서 3d 툴로 작업한 chain object들을 가져와서, 아래 그림과 같이 hierarchy 구조로 GameObject 들을 설정한다.
그런다음 UnityAnimationRigging RigSetup, Blender Render Setup 을 설정한다.
Rig1 아래 빈 GameObject 를 생성하여 ChainIKConstraint 를 추가한다. 설정은 아래 2번째 이미지를 참고하라.
Unity를 실행시키고, ChainIkConstraint 에서 설정한 target 을 움직이면, Chain이 그것을 향해 꼬리를 친다.
RootLeg, MidLeg, Ankle, Foot GameObject들이 부모 자식관계로 구성되어 있다. 이 상태로 Unity Animation Rigging 의 Rig Setup, Bone Render Setup 한다.
( 3d툴에서 bone을 만들필요없다. )
여기서 중요한 포인트는
각 GameObject의 origin이 회전축 anchor 로 위치해 있어야 한다는 것이다. (아래 그림에서 RootLeg의 origin 위치를 참고하라)
이는 Blender 툴에서 orgin을 별도 설정해야 한다.
1. Two Bone IK Constraint Setup
Left Leg, Right Leg 을 담당할 LL, RL GameObject 들을 생성하고 그곳에 각각 Two Bone IK Constraint 을 추가한다.
설정값은 아래 그림을 참고 한다.
(tip을 먼저 설정하고 Auto Setup from tip Transform 메뉴를 선택하면 자동으로 LL_target, LL_hint GameObject들이 자식으로 추가된다.)
2. IK Foot Solver setup
1) target
2) hint
Car[] cars = new[]
{
new Car(1, "one"), new Car(2, "two"), new Car(3, "three"), new Car(4, "four"), new Car(5, "five"), new Car(6, "six")
, new Car(3, "three 2"), new Car(4, "four"), new Car(5, "five")
, new Car(3, "three"), new Car(4, "four")
, new Car(3, "three 2")
};
var q = from a in cars group a by new
{
a.id, a.name
} into g
select (g.Key.id , g.Key.name, count: g.Count()) ;
foreach (var a in q)
{
if (a.count >= 2)
{
Console.WriteLine(a);
}
}
output
(3, three, 2) (4, four, 3) (5, five, 2) (3, three 2, 2)
When ParticleSystem.mainModule.StartSpeed = 0,
Particle are not showing.
Stretched Billboard : Particle stretched in the direction of motion.
this means particle must have speed.
camera scale : Particle stretched in the camera velocity
speed scale: Particle stretched in the speed of particle ( mainModule.startSpeed )
Length scale: Particle stretched in the length scale