Picked up Slate recently and it seems pretty impressive. Is there a way to get props to work easily? In code we currently map weapons etc. to a node in the hand. I tried a couple different methods in slate such as associating the prop with the node. It would move to the correct orientation with an offset and it wouldn’t animate with the parent node. I figure this is a common need so it’s likely I’m just missing something?
Also, like others have suggested sample scenes, video tutorials in English etc. would be a huge help. It seems like an amazing product, but could really use those types of things to get people up and running quickly.
Thanks a lot for getting Slate and for your feedback!
Considering I have understood correctly, I created a new action clip for easily attaching objects (props) to a child transform of the actor.
Bellow is the code of that new action clip which will also be included in the next version 🙂
I’ve also tested this along with an animation playing and it works as expected here.
Please let me know if that is what you were indeed after.
Thanks!
AttachObject.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
usingUnityEngine;
usingSystem.Collections.Generic;
namespaceSlate.ActionClips{
[Category("Transform")]
[Description("Attach an object to a child transform of the actor (or the actor itself) either permantentely or temporary if length is greater than zero.")]
Debug.LogError(string.Format("Child Transform with name '{0}', can't be found on actor '{1}' hierarchy",childTransformName,actor.name),actor.gameObject);