Thrifty Int Parameter
- Thrifty Int Parameter0 JPY
- Buy Me a Coffee(内容物与免费版一致)500 JPY
将两个int和一个bool变量进行编码,转换为一个int变量进行多设备同步(Sync),并在同步后,进行解码,还原为两个int和一个bool变量。 以此方法缩减对同步变量(Sync Parameter)的依赖。 一、优势在于: 1、极大缩减了对于同步变量(Sync Parameter)的依赖:通常的,两个int和一个bool需要消耗17/256个同步变量空间,按此方法仅消耗8/256个变量空间 2、几乎无感的转换时间:转换过程对于用户来说几乎不可察 3、傻瓜式的操作方法,极易移植:你可以一如往常的使用这两个int和一个bool,而无需在动画器中做额外操作 二、相对的,缺点如下: 1、参与合并的两个int变量范围皆被限制为[0,9],因此无法表示大于等于10的整数,和小于等于-1的整数 2、当重复利用本方法同步多组变量时,需要手动修改较为大量的中间变量名。
English Ver (By DeepL)
Two int and one bool variables are encoded, converted to one int variable for multi-device synchronisation (Sync), and after synchronisation, decoded and reduced to two int and one bool variable. This method reduces the dependence on Sync Parameter. First, the advantages are: 1, greatly reducing the dependence on synchronous variables (Sync Parameter): usually, two int and a bool need to consume 17/256 synchronous variable space, according to this method consumes only 8/256 variable space. 2, almost senseless conversion time: the conversion process is almost unnoticeable to the user. 3, foolproof operation method, very easy to port: you can use the two int and a bool as usual, without having to do additional operations in the animator Second, relatively, the disadvantages are as follows: 1, the range of the two int variables involved in the merge is limited to [0,9], so it is not possible to represent integers greater than or equal to 10, and integers less than or equal to -1. 2, when repeated use of this method to synchronise multiple groups of variables, you need to manually modify a large number of intermediate variable names.