room_set_view_enabled


描述

With this function you can enable (true) or disable (false) the view of any room within your game except the current one.


语法:

room_set_view_enabled(index, val);


参数:

参数 描述
index The index of the room to set.
val Whether to enable (true) or disable (false) views in the given room.


Returns:

N/A(无返回值)


例如:

global.myroom = room_add();
room_set_view_enabled(global.myroom, true);

This will enable views in the room indexed in "global.myroom".


上一页: General Room Functions And Variables
下一页: room_set_viewport
© Copyright YoYo Games Ltd. 2018 All Rights Reserved