Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 libgdx 立方演示有问题。
演示中的每个“scl”命令都有错误,它说“方法 scl(float) 未定义用于 Vector2 类型”我需要什么额外的库来运行这个演示?\
PS 我运行 metagun 演示没有问题。
您的 libgdx 库和演示源不同步。5个月前改变的scl方法。我相信它是在 0.9.8 发布之后,所以它是“夜间”构建的一部分。Vector2
scl
Vector2
因此,您应该将 cuboc 演示更新为每晚构建,或者应该针对较旧的 Libgdx 版本编译您拥有的演示。
尝试使用 PHP 正则表达式来匹配可能是函数的单词,而不是双引号。同时忽略可能是函数的双引号中的任何内容。下面已经匹配“你好(世界)”。并将 'hello(world)' 放在一个数组中,然后将 'hello' 放在另一个数组中。但是,我想要一个不添加它的条件,如上所述。
preg_match_all('#(\w*)\s*\(.*?\)