2017-03-01から1ヶ月間の記事一覧
【実行時に出たワーニング】 Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak 【状況】 ・A,B,Cのオブジェクトそれぞれに、同じAnimatorを付けている ・Animationの終わりに、イベントト…
2点間というより、原点からある点に対する角度の求め方、と考えた方がいい。 atan2(y, x)で、ラジアンが取れるそうだ。 function test() local radian = math.atan2(posy, posx) local degree = radian * 180 / 3.1415 end タッチされた方向にキャラを向かせ…
原点0,0から角度Nにある座標の数値は (cosN, sinN) https://helpx.adobe.com/jp/flash/kb/228615.html (これのページは、cosとsinが逆になってしまっている) function test() posx = math.cos(radianValue) posy = math.sin(radianValue) end 主に、シュ…
Unrecognized assets cannot be included in AssetBundles: "Assets/StreamingAssets/EnemyManager.lua". このように出て、アセットバンドルに入れられない。.lua拡張子は対応していないようだ。 〇StreamingAssets内に入っていると、拡張子がtxtでもダメ 〇…